DEV Community

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

Posted on • Updated on

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

Top comments (0)