Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all, We have a bunch of servers, all RedHat and CentOS and we have SSH access locked down to IP. This is all good at work but at home ...
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Posts
    6

    ssh access with dynamic IP

    Hi all,

    We have a bunch of servers, all RedHat and CentOS and we have SSH access locked down to IP. This is all good at work but at home i'm stuck with a dynamic IP and cannot get static. I want to setup a means of distributing this dynamic IP to each of our servers when i boot up from home so i dont have to mess around with remote access to work for SSH access.

    At home i'll generally be on Mac or PC (running XP). What i was thinking of doing was something along these lines. When PC or Mac boots up then automatically fire off a request using PHP (using cURL maybe) to a single server and store my current dynamic IP in a database or file. Each of the other servers could then check this host server via cron for a new IP and then if they find one they could then add this IP to the hosts.allow using sed or awk or something like that.

    I'm pretty sure all of this would work but it seems a bit complicated to me and requires the cron to be setup on each server. Wondering if i'm missing a much simpler method to make this work and would love any ideas people have. Can this all be achieved via proxies for example?

    Thanks.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    That might work. Most ISPs will issue the same IP address to a particular MAC for some period of time, so you might only have to do the web-based update occasionally. This is especially true if you have an always-on router that is your connection point to the internet. Your computer is NATed, so the IP address your servers see is the one assigned to your router/modem by the ISP.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...