I wanted to set up crontab
to fetch resources from remote server to local server.
Steps used as below
In local server
ssh-keygen
with no passphrase- copied the pubic key over to the server using SCP
In the remote server
cat id_rsa.pub >> ~/.ssh/authorized_keys
edited
.ssh
config filesudo nano /etc/ssh/sshd_config
as below:RSAAuthentication yes PubkeyAuthentication yes ChallengeResponseAuthentication yes PasswordAuthentication no UsePam no
reload ssh by
sudo /etc/init.d/ssh reload
Changed permissions:
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 [email protected]
it says:
Permission denied (publickey)
Server Details: Ubuntu 14.04, I set up public key with another user not with root user.
ssh -vvv ...
on the client andsudo sshd -ddd
on the server (shut down the SSH daemon first). Please edit your question to include the output of the two (see How do I save terminal output to a file?).