Originally Posted by
ray field
... The articles I see suggest using keygen to generate a key pair, of course. If I do that, my id_dsa files won't change, but known_hosts will have the information from the remote webserver, is that correct? Will there be new files in ~/.ssh ?
They won't change unless you tell ssh-keygen to overwrite them.
ssh-keygen has the -f option which will tell ssh-keygen where to place the keys once they are generated.
e.g.
Code:
ssh-keygen -t rsa -b 2048 -f /home/rayfield/.ssh/drush_key_rsa
So you can put as many key pairs in .ssh as you need. When using them you'll also have to refer to them explicitly.
Code:
ssh -i /home/rayfield/.ssh/drush_key_rsa drush.example.org
Bookmarks