Operating System - HP-UX
1753877 Members
7660 Online
108809 Solutions
New Discussion юеВ

Re: ssh passwordless connection problem

 
mrk_1
Frequent Advisor

Re: ssh passwordless connection problem

Hi,
I changed the permission as you mentioned.

-rwx------ 1 user1 users 394 Jan 23 19:18 authorized_keys

But, Still its asking password.

How do I change the HOME directory permission, If its required to change.

Thanks.
OldSchool
Honored Contributor

Re: ssh passwordless connection problem

"Jan 23 19:58:07 B sshd[22075]: Authentication refused: bad ownership or modes for directory /users/user1/admin"

where is the .ssh directory located? in /users/user1/admin??? if so, you need to lock that down. in addition the permissions on the "authorized_keys" file needs to be set.

the permissions need to be set up such that no one other that the owner can remove/replace the keys. as noted before, this is all explained in other posts here.

mrk_1
Frequent Advisor

Re: ssh passwordless connection problem


Thank you very much for all your help.
Finally issue is resolved.
I changed the permission of the user home directory.
The home directory of local and remote host must be same. I found this one of other thread of this forum.
So, I changed the permission of the home directory and its working fine now.

But it should be done by root user i think.i tried this in root user only. As the normal user cant change their own home directory permission.

Can any one confirm me that is it correct.

Thanks,
Ram
Dennis Handly
Acclaimed Contributor

Re: ssh passwordless connection problem

>As the normal user can't change their own home directory permission.

Typically the user owns his own home directory so he can change its permissions.
mrk_1
Frequent Advisor

Re: ssh passwordless connection problem

Thanks Dennis..
I tried to change home directory permission using normal user. I am able to change the home directory. Its working now...

Once again thank you all..

Cheers,
Ram