Matching username in ssh_config

Damien Miller djm at mindrot.org
Wed Jun 19 10:50:16 EST 2013


On Tue, 18 Jun 2013, Anton Lundin wrote:

> But it would be awesome of it was possible to add before that, eg fist
> match as all other blocks, a stanza looking like:
> 
> Host root at host123
>  IdentityFile rootkey

I floated the idea recently with Darren of introducing Match for ssh_config:

Match user djm host evil.com
	IdentityFile foo

I'll try to implement this for 6.3 if I get time and nobody beats me to it.
It's pretty easy if anyone wants to have a go at it - most of the
infrastructure already exists for the "Host" directive.

-d


More information about the openssh-unix-dev mailing list