On Thu, Mar 29, 2007 at 03:01:55PM +0530, Chetan S wrote:
> Hi,
> 
> Is it possible to configure ssh client in a way that it _does not_ add
> the server details to the known_hosts file ?   I haven't found any way
> to do that even looking through the manual or google.
> 
> The scenario is simple. I have a setup with port forwarding, where my
> ssh client thinks am connecting to a different host each time. ( ip
> remains same, port is different on ssh commandline ) and its a hassle
> to delete the "cached" line from the known_hosts everytime.
> 
IIRC (this is from a discussion a long time ago):

Setup your ~/.ssh_config like this:
Host foo
Port 22
Host bar
Port 23

Add foo and bar to your hosts file with the IP address.

ssh foo should automatically connect you to the correct port.

Devdas Bhagat

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-india-help mailing list
linux-india-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to