DEV Community

Cover image for easy way to generate SSH keys from VPS 💻
arsannnnn
arsannnnn

Posted on • Edited on

2 2

easy way to generate SSH keys from VPS 💻

SSH Key is a standart component used for secure remote shell session through less secure network using various cryptography techniques.

Here's how to generate it from VPS easily.

  1. Login to your VPS.
  2. Run ssh-keygen and enter until end. SSH Keygen
  3. Check if id_rsa and id_rsa.pub on ~/.ssh is created. Check Dot SSH
  4. Run ssh-agent /bin/bash SSH Agent
  5. Run ssh-add ~/.ssh/id_rsa SSH Aff
  6. Last thing to do, get ssh key that was created. Run cat ~/.ssh/id_rsa.pub Get SSH Key

SSH Key was generated! You can use it on any apps that needs it.

One Run Command

ssh-keygen
ssh-agent /bin/bash
ssh-add ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub
Enter fullscreen mode Exit fullscreen mode

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay