To give more detail, here's what your ~/.ssh/config file needs to look
like:
Host *
IdentityFile id_rsa.pub
Host hostname_with_special_keys.com
IdentifyFile id_rsa.hostname_with_special_keys.pub
Host another_host.com
IdentityFile id_rsa.another_host.pub
The actual hostnames and file names are ar
The correct way of doing this is to specify multiple "IdentityFile"
lines in your ~/.ssh/config
The id_rsa[.pub] files represent a keypair and isn't supposed to contain
multiple identities, but it's easy and perfectly valid to use several
keys, either by using -i or IdentityFile. Closing as this i
> Now why would I need/want to differentiate the keys? I don't care what
they are named. I just want to log in with whatever > key fits (to use a
RL analogy: I'd just try to plug in one key after the other into the
lock until one opens it).
So I'd like to say something like: use whatever key fits.
wretched_dutchman wrote:
> > When maintaining multiple servers with different rsa-keys it isn't
possible to put all the files in ~/.ssh/id_rsa.
Colin answered:
> I don't understand what you're trying to do. The id_rsa file is only supposed
> to contain one key; you can put other keys in
> diff
I don't understand what you're trying to do. The id_rsa file is only
supposed to contain one key; you can put other keys in different files.
What are you trying to achieve by putting multiple keys in one file?
** Changed in: openssh (Ubuntu)
Status: New => Incomplete
--
doesn't accept mul