KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have 2 ssh servers behind a nat firewall at a location that changes its wan IP every day. They are always at the same wan IP address on a given time but on different ports. I am connecting to server A this way: ssh -p 22001 karl@x1.example.com and to server B: ssh -p 22002 karl@x2.example.com So I get 2 different host keys for the same IP, and also when the IP changes even a different IP for the same host. I have to go on deleting over and over the other key or the old key (in case of IP change) in the known_hosts file. I am hesitating to turn the key verification off, because this would be less secure. But getting a warning all the time is also unsecure (because I ignore such warnings all the time then). Is there a better solution? This is related to my old question here but not the same: SSH login warning message on a server with 2 DNS names
Tags (comma-separated)
Save Edits
Cancel