If your IP address has changed you need to regenerate your keys (and remove the existing keys from the remote machine(s) that connect to "this" server).
So, on your changed IP server, log in and cd .ssh
. Remove the id_dsa
files then execute ssh-keygen
with at least -t dsa
plus any additional options you use. Hit the return key for the passphrase prompt (if you want).
Then on the remote machine(s), log in and cd .ssh
. Edit the authorized_keys
files deleting the "old" entries for the server that changed. Then connect:
That ought to work.
It's convenient to copy the id_dsa.pub
file from the changed server to your remote servers, putting the content into the authorized_keys
file in ~/.ssh
(and vice-versa depending on whether you want bi-directional connections).
It may be a good idea to edit /etc/hosts
and add the IP address and name of the server that changed (so you can simply refer to it by name on your remote system) of the form
184.108.40.206 server.domain server
By so doing, you should, on the remote machine, be able to ping server
(and, of course, simply ssh server
Hope this helps some.