OpenSSH Feature Requests

Damien Miller djm at mindrot.org
Sat Jun 25 21:49:59 EST 2005


Steve Meier wrote:
> When working with OpenSSH in larger networks I often had to use
> different keys for different hosts (with or without passphrases) to gain
> proper access. The major difference was between keys used for "real

You can specify these in .ssh/config using the IdentityFile option. ssh
will try keys in the order in which they are listed there (even if the
keys reside in the agent). E.g.

Host foo
	IdentityFile ~/.ssh/id_rsa_foo

Host bar
	IdentityFile ~/.ssh/id_rsa_bar

It might be worthwhile to add %h expansion IdentityFile so you could
template this in the config file, see:

http://bugzilla.mindrot.org/show_bug.cgi?id=95

-d




More information about the openssh-unix-dev mailing list