My setup is as follows:

I ssh from LinuxBox where I load my passphrase in memory in the X startup
scripts.  Every shell window I open in X already has my passphrase loaded.

I ssh to Box1 without having to type anything but ssh Box1 because my
passphrase is in memory.

ssh Box1                         (my config files has a User=rootjon entry)

I can then do an ssh to Box2 from Box1 by typing

ssh Box2 -l rootjon

I have no key set up on Box1.  It logs into Box2 with using my passphrase
and key which are still miraculously stored in memory somehow.  (I don't
understand it, but I like it)

My problem is on Box1.  I set a config file in my ~/.ssh directory.  It has
the entry:

User=rootjon

When I ssh to Box2 from Box1 using ssh Box2, it tries to log me in as
root@Box2 instead of rootjon@Box2.  Does anyone know why my config file on
Box1 is being ignored?

Thanks,
Charles

Reply via email to