> remove the line containing the destination servername or IP
But it will be added again the next time you connect.
You could write some entries into your /etc/hosts file so that you will have different names and same IP (your linux server IP) for every server that you connect to through tunnel. Like:
linux_server_IP myserver1, myserver2, etc
Than you can "slogin myserver1 -p 8999" for server 1, "slogin myserver2 -p 8998" for server 2 and appropriate keys will be added to your known_hosts file
As long as you will always use the same name (myserver1) to connect to the same server this will work.
Main Topics
Browse All Topics





by: ravenplPosted on 2006-03-16 at 10:56:54ID: 16208164
> If I do this with port forwarding - i get man in the middle attack warnings, etc.
That's correct. And it always will be with aplication layer proxy, as You will not be able to present Yourself with the target's server publicKey (as You don't have private one)
On the other hand, with portforwarding, the ip of the server does not match the ip saved with public key, but that's only if the client was already connected to destined server earlier (and saved server's private key).
Now, If You are the clien and want to get rid of the message, edit $HOME/.ssh/known_hosts and remove line containing the destination servername or IP.