SSH: Configure ssh_config to use specific key file for a specific server fingerprint

Posted by Penthi on Server Fault See other posts from Server Fault or by Penthi
Published on 2012-03-29T08:25:11Z Indexed on 2012/03/29 11:32 UTC
Read the original article Hit count: 270

Filed under:
|
|

I have a key based login for a server. The IP and DNS of the server can change, because it is hosted on Amazon.

Is there a way to configure the ssh client config to use the specific key file for this server only, when the fingerprint of the server matches?

In other words: Normaly servers are matched by IP or DNS in the ssh client config. I want to do this by fingerprint, becaus IP and DNS can change.

© Server Fault or respective owner

Related posts about linux

Related posts about ssh