Click to See Complete Forum and Search --> : DHCP and ssh


sb
03-06-2002, 02:43 PM
Hello,

I'm running RH at home and on several computers at work.
At work I have a public/private key set so I can ssh between computers without giving my password each time.

I'd like to do the same between home and work. My home network is DSL and uses pppoe protocal. I'm running a router that forwards port 22 to my linux machine's sshd. The problem is the DSL provider forces me to renew the IP number every X hours so I can't keep a fixed number. Is there away I can get around this problem?

If I can't use ssh keys I'd still like to have some way that I can tell what my home computer IP is from work. I've had the problem before that I'll head to work and during the commute (1.5 hours each way) my home system renews it's IP number.

Is there a script I could have cron run on my home system that mails or pings my office machine every hour so I can look up the IP from the log file?

Has anyone else found a solution to this type of problem?

jscott
03-06-2002, 03:56 PM
Something like: /sbin/ifconfig eth0 | grep "addr:" | cut -d: -f2 | cut -d' ' -f1

should give you your IP. I'm sure these a shorter/easier way to get this, but it works. Just have cron mail you when it changes.

SuperHornet
03-06-2002, 10:06 PM
Check out this.Link (http://gnudip2.sourceforge.net/) out.

The GnuDIP software implements a Dynamic IP DNS service. It provides clients with a static DNS name even if their IP address is dynamically assigned.

TC
03-07-2002, 01:39 AM
DynDNS is definitely the way to go here.
http://www.dyndns.org/

:D

TC

Have fun computing