I wanted to set up
crontab to fetch resources from remote server to local server.
Steps used as below
In local server
ssh-keygenwith no passphrase
- copied the pubic key over to the server using SCP
In the remote server
cat id_rsa.pub >> ~/.ssh/authorized_keys
sudo nano /etc/ssh/sshd_configas below:
RSAAuthentication yes PubkeyAuthentication yes ChallengeResponseAuthentication yes PasswordAuthentication no UsePam no
reload ssh by
sudo /etc/init.d/ssh reload
sudo chmod 700 .ssh sudo chmod 600 .ssh/authorized_keys
After all this configuration, neither I am able to access remote server by public key or normal login credential into remote server.
If I tried to login through PuTTy asked for my login after has been entered. Its says:
Disconnected: No supported authentication methods available (server send: publickey)
If I tried to login through SSH from local server
ssh firstname.lastname@example.org it says:
Permission denied (publickey)
Server Details: Ubuntu 14.04, I set up public key with another user not with root user.