Multiple private keys
- From: efair <ed_fair@xxxxxxxxx>
- Date: Fri, 28 Dec 2007 15:08:06 -0800 (PST)
I've been using ssh to access a remote server (server A) from my
workstation. The admin of server A do not provide me a password, he
prefers to use "shared secrets" for access control -- he creates a
userid for me, generates a key pair, puts the public key in ~/.ssh/
authorized_keys, provides me the userid and the private key; I copy
the private key into id.rsa on my workstation, and I then ssh into
server A. No password prompt appears.
Now I need to access another server (server B) from my workstation.
The admin of server B also uses the "shared secrets". The admins
won't use the same keys.
Is there any way to switch back and forth between the two private keys
on my workstation, short of replacing the id_rsa file every time I
want to access A or B?