Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a client I need to do work for on their server where I need the ability to ssh to their machine. They requested my IP address so that they can allow only me into their server. I know my isp gives me a dynamic IP. What are the alternatives we could use to provide a secure singular connection between the two machines?

Thanks for your help

share|improve this question
up vote 2 down vote accepted

You could use dynamic DNS and then have the other location allow your domain name in the hosts.allow file. ( A few other security steps you could do is:

  • Only allow key based logins
  • Change the port on which SSH is listening
  • Only allow specific users to use SSH
share|improve this answer

If you can not get/afford to get a static IP from your ISP. There are other options that can increase the security.

  1. They can open the SSH on a non-standard port (other than 22).
  2. They can prevent SSH login using passwords and gives you a certificate to use instead.
  3. They can allow the login for some specific users/groups only.
share|improve this answer

One solution is dynamic DNS where external DNS server keeps track of your changing address.Check, Update a DNS to a for a dynamic IP

share|improve this answer

The IP-based restriction seems kind of a wrong approach, just ask them to use key-based authentication and restrict password-based authentication.

share|improve this answer

It'd be better if you can get key-based authentication set up by the client. That will be at least as secure as IP based restrictions.

If you can't, you might be able to use some cloud services as an out of the box approach. I haven't fully explored this, but you can possibly use an Amazon AWS trial account for a year. You can get a static IP using the Elastic IP service, which is a couple bucks a month. In this case, you'd ssh to the EC2 instance, then ssh over to the client.

share|improve this answer
would this be something like what you setup with github ? – mcgrailm Dec 27 '11 at 14:21
Uh, no. Github does key-based authentication, and doesn't care about the incoming IP. The only reason to set up such an EC2 instance would be to use an Elastic IP (i.e., a static IP) if your client is insisting on an IP-based security layer for SSH. – cjc Dec 27 '11 at 14:27
One should note that dynamic IPs from your ISP can be pretty stable. I had one from Verizon that lasted 18 months. – cjc Dec 27 '11 at 14:28
yeah I know its pretty consistent but that's if there are no power outages – mcgrailm Dec 27 '11 at 14:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.