On 4/5/07, Devdas Bhagat <[EMAIL PROTECTED]> wrote: > On Thu, Mar 29, 2007 at 03:01:55PM +0530, Chetan S wrote:
> > 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 > right. However it works so long as the host name is unique i.e you have foo and bar. if you have foo and foo behind same nat due to some constraints then it fails. Plink was simple and easy considering it stores port info also in the session data. regards, C ------------------------------------------------------------------------- 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