known_hosts, same hostname, different ip address
When a client connects to a server using SSH and authentication keys, the "authorized_keys" file is used to authenticate the user and the "known_hosts" file is used to authenticate the server.
In my scenario, the server will always have the same hostname, but there's a chance that its IP Address will change. So the IP Address won't match the IP Address of the "known_hosts" file on the client. My question is: will the client ask if I trust the server I'm connecting on? And someone will have to type "yes"? Or since the hostname remains the same, it will be able to connect without asking any questions? The OS is Debian 8, on client and server. |
well it wont be on the known hosts so it will ask for confirmation.
|
Quote:
So I'm not sure it will ask if the host is trusted since they already do have a key. known_hosts is not a file containing hostname and address, both of those are not found in that file and instead ssh keys are found in that file. |
Quote:
|
Quote:
Code:
Warning: Permanently added the ECDSA host key for IP address '24.25.200.57' to the list of known hosts. HOWEVER, if this "new" IP address is coincidentally the IP address of a computer which the user has, in the past, connected to, it will likely throw a big warning of a possible man-in-the-middle attack. That is, unless the previous computer had the same public key (i.e. it was the same computer last time). |
All times are GMT -5. The time now is 01:36 AM. |