I am sure this has been asked many times, for some reason I have still problem with getting it to work.
I have a generated public and private key on my windows machine and copied the public key:
ssh-copy-id -i ~/.ssh/id_rsa.pub ekamolid@host
then on the server I did:
chmod 700 .ssh chmod 644 authorized_keys
on local machine I run:
chmod 600 id_rsa
sshd_config file has:
I restarted ssh server on remote server.
I get following error in
Feb 17 06:36:56 bur00cpw sudo: pam_unix(sudo:auth): authentication failure; logname=ekamolid uid=0 euid=0 tty=pts/3 ruser= rhost= user=ekamolid
What am I missing here?