On Thursday 29 March 2007 15:01, 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.

man ssh_config , look at the UserKnownHostsFile directive.  Set it 
to /dev/null in the config file or on the ssh command line.

Regards,

-- Raju
-- 
Raj Mathur           [EMAIL PROTECTED]   http://kandalaya.org/
       GPG: 78D4 FC67 367F 40E2 0DD5  0FEF C968 D0EF CC68 D17F
                      It is the mind that moves

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to