On Sunday 15 January 2006 12:14, Peter Philipp wrote: > On Sun, Jan 15, 2006 at 11:45:35AM -0500, Dave Feustel wrote: > > I now have a working ssh connection to a computer on > > my subnet by using the (hardwired) ip address in the > > known_hosts file. How can ssh be used to connect to a > > computer with a (variable) dhcp-assigned ip address, > > given that the ip address can change at any time? > > I do this although not on a LAN with DHCP addressing but on the Internet on > several computers registering to a self-made lookup service. On a LAN with > DHCP you may be able to configure Dynamic DNS to identify what hosts have > what IP address. You should take care of the StrictHostKeyChecking which > will complain that a known hosts will have a different Public Host Key. > You'll get those "this could mean a man-in-middle attack" type messages which > you'll have to ignore and possibly edit the .ssh/known_hosts to get rid of > any entries there. Also you won't really know for sure what host is what > so it's probably safer to resort to rsa/dsa key authentication as password > authentication should be avoided since the host behind an IP could be a > malicious host with purpose to gobble up passwords. > > Cheers, > > -peter
Thanks, Peter! I got this working internally by using the ip address of the internal ethernet adaptor. I have in the past just posted dhcp-assigned ip addresses of http servers on my public website where they could be used as indirect addressing. -- Lose, v., experience a loss, get rid of, "lose the weight" Loose, adj., not tight, let go, free, "loose clothing"

