Ssh error

ssh -q <remote_server> <command>

is not working for only one remote server.

From the source, we are able to connect other servers using the above command but one. All the servers are in same network and no selinux/iptables enabled.

The verbose output has the following message -

debug1: Trying private key: /root/.ssh/id_dsa
debug1: No more authentication methods to try.
Permission denied (publickey,password).

Please help.

Are you using the correct key pair?

Yes. The same is being used for other servers.

It may well be correct on other servers, but did you check it on that particular server?

1 Like

There was a typo mistake in authorized_keys. Corrected.

Thanks
:smiley: