On 08/10/11 09:45, Aggelis Aggelis wrote:
Problem:
Was there really one? ;-)
i am sitting in an openbsd box (A.A.A.A) logged in as userA and i want to ssh to an openbsd box (B.B.B.B) as userB This can be accomplished with [userA@boxA]$ ssh -l userB B B.B.B.B and i will be asked the password for userB if i do not specify the username ssh uses automatically my login name [userA@boxA]$ ssh B B.B.B.B userA@B.B.B.B's password: Although this is for aesthetic reasons is there a way for ssh client not to send user information so that i will be asked for user name AND password from the ssh server running on box B.B.B.B ?
I strongly suspect that the username is negotiated before you get a chance to interact. However a simple hack would do;
$ ssh -l "$(echo -n "Username: " >&2 && head -n1)" B.B.B.B /Alexander