How to remove "user at host's password" from ssh login prompt?
Chris Green
cl at isbd.net
Tue Sep 4 16:39:29 UTC 2018
On Tue, Sep 04, 2018 at 05:21:34PM +0100, Colin Watson wrote:
> On Tue, Sep 04, 2018 at 04:38:43PM +0100, Chris Green wrote:
> > The password request. The system I'd like to emulate simply says
> > "Password:" and nothing else before and nothing after unitl the bash
> > prompt appears.
> >
> > So:-
> >
> > chris$ ssh <the host in question>
> > Password:
> > <prompt>$
>
> Could you provide the output with the "ssh -v" option (sanitised if
> necessary, but please not sanitised too much)? In particular, that
> should tell us which authentication method(s) are being tried, and
> generally narrow down the search space.
>
Here's the result:-
ris$ ssh -v systemabc
OpenSSH_7.6p1 Ubuntu-4, OpenSSL 1.0.2n 7 Dec 2017
debug1: Reading configuration data /home/chris/.ssh/config
debug1: /home/chris/.ssh/config line 11: Applying options for systemabc
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: auto-mux: Trying existing master
debug1: Control socket "/home/chris/.ssh/systemabc:22" does not exist
debug1: Connecting to systemabc [xx.xx.xxx.xxx] port 22.
debug1: Connection established.
debug1: identity file /home/chris/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /home/chris/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/chris/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/chris/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/chris/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/chris/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/chris/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/chris/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4p1 Debian-10+deb9u4
debug1: match: OpenSSH_7.4p1 Debian-10+deb9u4 pat OpenSSH* compat 0x04000000
debug1: Authenticating to systemabc:22 as 'chris'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: rsa-sha2-512
debug1: kex: server->client cipher: chacha20-poly1305 at openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305 at openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-rsa SHA256:BMfa29oD/6+zzWuZaHoDBOIz8z84YQYtsQ7sWfwGs5I
debug1: Host 'systemabc' is known and matches the RSA host key.
debug1: Found key in /home/chris/.ssh/known_hosts:2
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:E+CNloh00i0yjBfPtWvI6b7GufLVmpzuDA2XeCv3Zy0 /home/chris/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /home/chris/.ssh/id_dsa
debug1: Trying private key: /home/chris/.ssh/id_ecdsa
debug1: Trying private key: /home/chris/.ssh/id_ed25519
debug1: Next authentication method: keyboard-interactive
Password:
debug1: Authentication succeeded (keyboard-interactive). Authenticated to systemabc (xxx.xx.xxx.xxx]:22).
debug1: setting up multiplex master socket
debug1: channel 0: new [/home/chris/.ssh/chris at systemabc:22]
debug1: channel 1: new [client-session]
debug1: Entering interactive session.
debug1: pledge: id
debug1: client_input_global_request: rtype hostkeys-00 at openssh.com want_reply 0
debug1: Sending environment.
debug1: Sending env LANG = en_GB.UTF-8
debug1: Sending env LC_COLLATE = C
debug1: Sending env LC_CTYPE = en_GB.utf8
chris at systemebc$ exit
logout
debug1: client_input_channel_req: channel 1 rtype exit-status reply 0
debug1: client_input_channel_req: channel 1 rtype eow at openssh.com reply 0
debug1: channel 1: free: client-session, nchannels 2
debug1: channel 0: free:
/home/chris/.ssh/chris at systemabc:22, nchannels 1
Connection to systemabc closed.
Transferred: sent 2772, received 3176 bytes, in 14.4 seconds
Bytes per second: sent 191.9, received 219.9
debug1: Exit status 0
chris$
--
Chris Green
More information about the ubuntu-users
mailing list