Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: ssh on lan by hostname instead of dynamic ip

From: Tod Detre <tdetre(at)pantek.com>
Date: Fri Jun 22 2007 - 17:20:00 EDT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Is there a way to use ssh and rsync using hostname instead of ip
> address. It seems to me I've had this working once or twice, but then
> it stops.

You could set up your dhcp server to talk to a dns server and do your hostnames automatically, but it would require a lot of setup.

I think the easiest thing would be if you're machines are set up with ipv6 and are on the same lan, just use the ipv6 local address. you can get this by doing ifconfig and using the inet6 addr. It should start with fe80. Yeah, ipv6 address are long and hard to remember, but you can copy and paste and put it in your script. The address is based on the MAC address of your card and so shouldn't change unless you change hardware. Use ping6 to see if the machines can ping each other.

Regards,
Tod Detre

iD8DBQFGfD0AIP3eD7Sc0oYRAnFBAJ0WZXjaGPXuke9hvxjZbKZ+hZ62SQCcDU2m 0+K9G/1e2vv9QhJsEknc+sQ=
=1cVk
-----END PGP SIGNATURE-----

-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Fri Jun 22 17:20:29 2007

This archive was generated by hypermail 2.1.8 : Fri Jun 22 2007 - 17:30:03 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library