openssh configuration question: domain -> username mapping

From: Neil Zanella (nzanella@cs.mun.ca)
Date: 05/27/02


From: Neil Zanella <nzanella@cs.mun.ca>
Date: Mon, 27 May 2002 16:00:52 -0230


Hello,

I am running openssh 3.1p1 as revealed by rpm -qa 'openssh*'.
I would like to configure my ~/.ssh/config so that when I
connect to doamin foo.net I am logged in as userfoo and
when I connect to domain bar.net I am logged in as userbar,
automatically so that I don't have to type the userfoo@
part of the SSH URL on the command line. Is this possible?

Thanks,

Neil