How to remove "user at host's password" from ssh login prompt?

Karl Auer kauer at biplane.com.au
Tue Sep 4 16:08:15 UTC 2018


On Tue, 2018-09-04 at 16:42 +0100, Chris Green wrote:
> So how come it's different on one particular host I connect to?

I would really like to see a screenshot of that happening. With the two
ssh commands right after each other. Just CTL-C the password prompts.
Obfuscate the username and system name if you wish. Like this:

lis at kt:~$ ssh localhost
lis at localhost's password: 

lis at kt:~$ ssh 127.0.0.1
lis at 127.0.0.1's password: 

Obviously not to localhost - to the two hosts you have that demonstrate
the differing behaviour :-)

Do need to see the command line parameters; obfuscate only user and
host.

Regards, K.

PS: A workaround if you are really keen might be to shadow ssh with a
script that prompts for a password and uses ssh-pass to run ssh inside
the script, delivering the password to ssh for you. Then you can have
any prompt you like - or none. I've never done this, but it seems like
a plausible thing.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: A0CD 28F0 10BE FC21 C57C 67C1 19A6 83A4 9B0B 1D75
Old fingerprint: A52E F6B9 708B 51C4 85E6 1634 0571 ADF9 3C1C 6A3A






More information about the ubuntu-users mailing list