November 2007
Beginner
642 pages
15h 43m
English
You want to use different identity keys for different servers. How do you create keys with different names?
Use the -f flag of the
ssh-keygen command to give keys
unique names:
[carla@windbag:~/.ssh]$ ssh-keygen -t rsa -f id_mailserverThen, use the -i flag to select the key you want to use when you log in to the remote host:
$ ssh -i id_mailserver bart@192.168.1.11
Enter passphrase for key 'id_mailserver':You don't have to name your keys "id_" whatever, you can call them anything you want.
man 1 ssh-copy-id
man 1 ssh
man 1 ssh-keygen
man 8 sshd
Read now
Unlock full access