Quote:
Originally Posted by Ephracis
Hi,
I have a network with several clients running sshd. I have different port pointing to each client to port 22. I was just wondering if there is any way to cope with the hazzle of rsa key fingerprint in this situation. Whenever I from the outside ssh to a different machine within the network I have to manually remove ~/.ssh/known_hosts before sshing to the client behind the firewall.
Any ideas?
|
Assuming ports 22221, 22222, etc., are redirected to several different hosts:
ssh-keyscan -t rsa -p 22221 host.foo.com >> ~/.ssh/known_hosts
ssh-keyscan -t rsa -p 22222 host.foo.com >> ~/.ssh/known_hosts
ssh-keyscan -t rsa -p 22223 host.foo.com >> ~/.ssh/known_hosts
etc.
I had this problem this morning and decided to solve it, I found this old discussion. It's never too late too give the right answer :-)