How can I create multiple SSH keys?

Mark Alexa

What would be a walkthrough on how to set up multiple SSH keys?

I'm trying to connect to my remote server and GitHub account. I've got SSH access established with GitHub, but when I used ssh-keygen -t rsa and hit Enter, the terminal prompted me if I wanted to override the one that already exists. How can I create a new SSH key just for the remote server?

Ravexina

You should specify the output file, for example:

ssh-keygen -t rsa -f ~/.ssh/my-new-key

Then to connect:

ssh -i ~/.ssh/my-new-key 192.168.x.x

Or set up an SSH configuration file:

nano ~/.ssh/config

Then put in something like:

Host my-server
    HostName 192.168.x.x
    User root
    Port 22
    IdentityFile /home/username/.ssh/my-new-key

Finally:

ssh my-server

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I create multiple SSH keys?

From Dev

How can multiple private keys be used with ssh?

From Dev

How can multiple private keys be used with ssh?

From Dev

Can I have multiple ssh keys in my .ssh folder?

From Dev

How can I generate weak SSH keys?

From Dev

How Can I Regenerate SSH Keys?

From Dev

How do I use multiple SSH keys on GitHub?

From Dev

How can I make a user able to log in with ssh keys but not with a password?

From Dev

How can I allow ssh host keys to be added again?

From Dev

How can I use JMeter to load SSH keys in Pageant

From Dev

How can I keep SSH keys passwords in KDE wallet?

From Dev

how can I store ssh keys without a home directory?

From Dev

How can I stop ssh from trying to create ~/.ssh?

From Dev

How to manage multiple ssh keys in the ~/.ssh directory

From Dev

How can I get the value of multiple keys if I find it in a loop?

From Dev

Can Ansible be configured to try multiple SSH keys?

From Dev

PHP How can I create multiple sessions?

From Dev

How can I create multiple users in Unix?

From Dev

How can I create a nested object from a list of keys and a value?

From Dev

how can i create primary keys in spark scala automatically?

From Dev

After setting up ssh-keys, how can I ssh into the server such that the key-pair will be ignored?

From Dev

How can I check if multiple array keys exist?

From Dev

How can I unite multiple objects to add their keys?

From Dev

How can I count multiple foreign keys and group them in a row?

From Dev

How can I add multiple keys to a python Dictionary?

From Dev

How do I create a SSH user that can only access MySQL?

From Dev

How to use multiple Git SSH keys on Eclipse?

From Dev

How can I forward multiple ports in the SSH configuration with LocalForward?

From Dev

How can I tail multiple files and pipe their output to an SSH connection

Related Related

  1. 1

    How can I create multiple SSH keys?

  2. 2

    How can multiple private keys be used with ssh?

  3. 3

    How can multiple private keys be used with ssh?

  4. 4

    Can I have multiple ssh keys in my .ssh folder?

  5. 5

    How can I generate weak SSH keys?

  6. 6

    How Can I Regenerate SSH Keys?

  7. 7

    How do I use multiple SSH keys on GitHub?

  8. 8

    How can I make a user able to log in with ssh keys but not with a password?

  9. 9

    How can I allow ssh host keys to be added again?

  10. 10

    How can I use JMeter to load SSH keys in Pageant

  11. 11

    How can I keep SSH keys passwords in KDE wallet?

  12. 12

    how can I store ssh keys without a home directory?

  13. 13

    How can I stop ssh from trying to create ~/.ssh?

  14. 14

    How to manage multiple ssh keys in the ~/.ssh directory

  15. 15

    How can I get the value of multiple keys if I find it in a loop?

  16. 16

    Can Ansible be configured to try multiple SSH keys?

  17. 17

    PHP How can I create multiple sessions?

  18. 18

    How can I create multiple users in Unix?

  19. 19

    How can I create a nested object from a list of keys and a value?

  20. 20

    how can i create primary keys in spark scala automatically?

  21. 21

    After setting up ssh-keys, how can I ssh into the server such that the key-pair will be ignored?

  22. 22

    How can I check if multiple array keys exist?

  23. 23

    How can I unite multiple objects to add their keys?

  24. 24

    How can I count multiple foreign keys and group them in a row?

  25. 25

    How can I add multiple keys to a python Dictionary?

  26. 26

    How do I create a SSH user that can only access MySQL?

  27. 27

    How to use multiple Git SSH keys on Eclipse?

  28. 28

    How can I forward multiple ports in the SSH configuration with LocalForward?

  29. 29

    How can I tail multiple files and pipe their output to an SSH connection

HotTag

Archive