0

If a user can access a remote machine using SSH ok but then their static IP address changes and they find they can't access the machine, what's the problem?

I don't want to destroy the user's current public key by generating a new one because then they won't be able to SSH in other machines where their old public key was!

How do you get around this?

Many thanks.

ale
  • 933
  • 2
  • 10
  • 13

1 Answers1

1

It could be due to various reasons as outlined below,

  1. iptables/firewall as has been mentioned earlier by @Jeff Ferland You can check and confirm that by listing all the iptables rules currently active,

    iptables -L INPUT

The above command will output all the rules set for incoming/ingress traffic.

  1. tcpwrappers configured for allowing traffic for SSH from specific IP addresses/subnets only.

You can check the following two files to check whether tcpwrappers has been configured,

cat /etc/hosts.allow
cat /etc/hosts.deny 

If you see any IP address(es)/network configuration in any of the above files then you will need to add/allow the new IP address by adding the same in the respective file.