[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh on lan by hostname instead of dynamic ip



-----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

- --
Pantek, Inc. - http://www.pantek.com/ - info@pantek.com
+1-877-LINUX-FIX - Expert Open Source Software IT Services.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

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



Reply to: