ssh login --

ubuntu-users-list at thomas.freit.ag ubuntu-users-list at thomas.freit.ag
Sun Jul 14 22:44:17 UTC 2024


Hi Bruce,

On 15.07.24 00:19, bruce wrote:
> when doing the ssh -vv root at 1.2.3.4
> 
> I'm getting a key in the /root/.ssh/known_hosts file...

~/.ssh/known_hosts stores host public keys, that is for man-in-the-middle
detection, not authentication.

> test output of the ssh -vv root at 1.2.3.4
> 
> ssh -vv root at 1.2.3.4
> OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
> debug1: Reading configuration data /etc/ssh/ssh_config
> debug1: Applying options for *
[...]
> Warning: Permanently added '137.184.206.239' (RSA) to the list of known hosts.	<<< store host key (mitm detection)
[...]
> debug1: Authentications that can continue: publickey,password 			<<< user authentication starts here
> debug1: Next authentication method: publickey
> debug1: Offering public key: /root/.ssh/id_rsa					<<< you are authenticated using the key in /root/.ssh/id_rsa
> debug2: we sent a publickey packet, wait for reply
> debug1: Server accepts key: pkalg ssh-rsa blen 277
> debug2: input_userauth_pk_ok: SHA1 fp
> b7:ee:cb:44:49:28:79:a7:b6:bd:63:d3:c2:b6:57:68:03:4d:22:19
> debug1: Authentication succeeded (publickey).

Check differences with ssh -vv ... output on other host and check
~root/.ssh/authorized_keys on both servers (contents and file permissions).

regards,
Thomas





More information about the ubuntu-users mailing list