Koozali.org: home of the SME Server

Contribs.org Forums => Koozali SME Server 10.x => Topic started by: joost on November 14, 2023, 05:34:11 PM

Title: The authenticity of host 'XXX.XX.XXX.XX (XXX.XX.XXX.XX)' can't be established.
Post by: joost on November 14, 2023, 05:34:11 PM
I try to ssh to the server with ssh root@xxx.xx.xxx.xx

The reply I get is: "The authenticity of host 'XXX.XX.XXX.XX (XXX.XX.XXX.XX)' can't be established."
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Failed to add the host to the list of known hosts (.ssh/known_hosts).

I can go futher.

What could be the problem?

Thanks
Title: Re: The authenticity of host 'XXX.XX.XXX.XX (XXX.XX.XXX.XX)' can't be established.
Post by: Jean-Philippe Pialasse on November 14, 2023, 05:43:52 PM
man in the middle attack could be the worst issue.

have you upgraded your server or change your client configuration?
Title: Re: The authenticity of host 'XXX.XX.XXX.XX (XXX.XX.XXX.XX)' can't be established.
Post by: joost on November 14, 2023, 11:34:55 PM
I removed PHPKI. And did a fresh install. When I tried to connect via my laptop to the server I got this error. Is that logical? When I moved .ssh/known_hosts to known_hosts.old and retried to connect with ssh it added the fingerprint to known_hosts and the error disappeared.

Now I am wondering does this make sense? Or is there more to this?

Thanks
Title: Re: The authenticity of host 'XXX.XX.XXX.XX (XXX.XX.XXX.XX)' can't be established.
Post by: Jean-Philippe Pialasse on November 15, 2023, 01:21:38 AM
fresh install means new host key. 

means you need to remove the entry for the same ip in .ssh/known_hosts on your client