I'm trying to get two server to connect via ssh keys. These two servers had working ssh key authentication before, but one of them failed and was restored from a backup. Since then, the key does not seem to be working. I've tried the following:
- Making sure permissions are set correctly
- Removing all remote entries of the host and starting over
- Generating a new key
When I set this up the first time around, I generated a key with ssh-keygen
, and copied it over with ssh-copy-id
, and things worked smoothly. Now, even starting over from scratch, that isn't the case.
This is a small, isolated environment, so there was nothing complicated going on - I wasn't using ssh-agent
, or a passphrase for the key.
Reading the remote server's log, I can see the key was accepted, yet it still prompts for password. I'm not really sure what has gone wrong and would be grateful for some direction.
Thanks!