passwordless auth

General support questions
Post Reply
knzzz
Posts: 121
Joined: 2017/02/25 12:41:42

passwordless auth

Post by knzzz » 2018/05/20 11:58:26

Hi Team,
Am trying to create a password less auth for normal user but when i tried to copy the create the keygen it was successfull
when i try to login with the same user to my target server , its prompting for password

ssh-copy-id -i ~/.ssh/id_rsa.pub tester@192.168.235.133
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/tester/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
tester@192.168.235.133's password:

Number of key(s) added: 1

Now try logging into the machine, with: "ssh 'tester@192.168.235.133'"
and check to make sure that only the key(s) you wanted were added.

[tester@ansi .ssh]$ ssh 192.168.235.133
tester@192.168.235.133's password:


by with the same key am able to create passwordless auth for rest of the servers on the same user.

kindly suggest how to fix it.

Regards
Kanna

gjaltemba
Posts: 37
Joined: 2016/11/29 15:23:25

Re: passwordless auth

Post by gjaltemba » 2018/05/21 01:30:44

On the client run ssh in debug mode

ssh -vvvv tester@192.168.235.133

On the target server, compare the sshd_config with a working config
verify the contents and permission for /home/tester/.ssh/authorized_keys

Post Reply