View previous topic :: View next topic |
Author |
Message |
danielsbrewer Tux's lil' helper
Joined: 04 Oct 2004 Posts: 135 Location: Epsom, UK
|
Posted: Fri Sep 23, 2005 1:37 pm Post subject: NAT and ssh |
|
|
My home network is behind a NAT and I have two ssh servers. The router is set up so that it forwards port 22 to one server and port 1022 to the other. The problem I am having is with the client side. Basically every time I ssh into a different server ssh complains that the remote host has changed. I can only get to the other machine by deleting the entry in the known_hosts file. EVen when I do that it complains about the key being different to the ip-address key.
Is there a good way to get around this?
Thanks |
|
Back to top |
|
|
danielsbrewer Tux's lil' helper
Joined: 04 Oct 2004 Posts: 135 Location: Epsom, UK
|
Posted: Fri Sep 23, 2005 1:53 pm Post subject: |
|
|
Sorry, I have worked out how to do it. For those that are interested, you just need to change your .ssh/config a bit to have this:
Host home
Hostname www.example.com
Port 1022
HostKeyAlias home
CheckHostIP no
User example
The HostKeyAlias gives t an independent hostkey and CheckHostIP ensures that it doesn't check the ip.
Dan |
|
Back to top |
|
|
jetblack101 n00b
Joined: 17 Jan 2005 Posts: 16
|
Posted: Fri Oct 21, 2005 2:22 am Post subject: |
|
|
thank you so much this was driving me crazy! |
|
Back to top |
|
|
|