DEV Community

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

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 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/ Get SSH Key

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

One Run Command

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

Top comments (0)