When I SSH to a server, the prompt sometimes displays my user and the hostname of the server:
xavier@local:~$ ssh server1
xavier@server1's password:
Sometimes all I get is Password:
xavier@local:~$ ssh server2
Password:
Which is less convenient when tunneling (difficult to know if I have to enter the password for the second server or if I need to repeat the first one because I made a mistake for instance), and also when using different usernames (did I forget to set the correct one in .ssh/config
?).
Typically I find that Debian/Ubuntu will prompt with user@hostname's password:
, whereas I see Password:
on OpenSUSE/SLES/Mac servers.
Obviously the servers are configured differently, but I couldn't find what causes this difference. How can I configure the ssh server to display the user and hostname in the prompt? Or maybe I can do it client side?