how to ssh to a machine which changes ip?
OK, I've done a searcgh on this, and I get many results, but none really answering me this:
I started work at a corporate office. I have two RJ45 outlets for networking. I use one for the corporate computer and I stuck in an old linux computer on the second. It connects to the internet no problem.
Because it runs sshd, once I know the ip it's on, I can ssh into from anywhere, which is cool.
However, I switch it off and on everyday and I get a different ip address each time, so I never know which ip address I can communicate with it on.
Readin some howto's it says I can assign a static ip .. sure, but then it doesn't connect to the net at all.
Am I asking the impossible? I mean the machine needs to be given an ip address from the corporate dhcpd server and the policy is that it should be different each time or else sshing to it cannot happen. However though ssh is possible once that happens, the ip address is not fully known, so ssh doesn't happen.
The workaround is of course to take pencil and paper and make a note of the ip address it gets each time it turns on. IS that my best bet?
|