If I understand correctly your problem, I think you can use the
ssh_config setting 'PreferredAuthentications while using ssh (ssh -o
PreferredAuthentications password) to have it prefer the password over
the key when you don't want it to use the key. Another option is to
disable the ssh-agent bg process which caches your keys and will use
them automatically, if this is disabled, then I'm pretty sure you'll
need to explicitly set the key with the -i command.

Hope this helps.

-- 
ssh server forces a command when it should not
https://bugs.launchpad.net/bugs/161047
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to