0

I have a ubuntu server at remote site to whom I access via SSH user@ip-address. IP is assigned from a DHCP server of remote site (for which I don't have access). After few reboots, the server's IP gets released and it gets new IP address. I then have to call someone at remote site to go and check the server's new IP so I can SSH.

Is there a way that I can SSH the machine via hostname (or any other configuration) without completely relying on the IP?

  • 1
    Best would be to talk to the DHCP admin and either assign a static entry for your MAC address in the DHCP server or make use of DDNS ( dynamic DNS ) – Thomas Apr 8 '18 at 9:04
  • Why not set a static IP on the server? – chili555 Apr 8 '18 at 10:57
  • @chili555 because I do not have any rights on remote site, and I am only allowed to connect to their preconfigured dhcp wire. – Waqas Apr 8 '18 at 12:35
  • Can you make the remote machine somehow publish its IP after booting? E.g. by sending you an email or writing it to some node with a known IP? – PerlDuck Apr 8 '18 at 15:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.