Operating System - HP-UX
1833200 Members
2876 Online
110051 Solutions
New Discussion

Re: ssh without passwords problem

 
Bob Manocchia
Regular Advisor

ssh without passwords problem

I have a problem running ssh from a client to a server without using passwords. I've attached all the relavent files. I used the method of running ssh-keygen -t rsa on the client and copying the file id_rsa to identity on the client in the ~/.ssh directory. I then copied the file id_rsa.pub to the master server and copied it into the authorized_keys file in the ~/.ssh directory there.

The output from the ssh -v command is also attached.

Any help would be appreciated.
4 REPLIES 4
Jonathan Fife
Honored Contributor

Re: ssh without passwords problem

Hi,

Check the server syslog, see if ssh put any interesting errors in there.

Also, what are the permissions on the server-side user's .ssh directory?

Decay is inherent in all compounded things. Strive on with diligence
IT_2007
Honored Contributor

Re: ssh without passwords problem

Try with -vvv option so that you would see more information.

ssh -vvv dione
Marvin Strong
Honored Contributor

Re: ssh without passwords problem

The syslog should tell you exactly what the problem is.

Make sure all relevant files are only writeable by owner. I prefer 700 for .ssh
/home/user needs to be 755 or tighter.
Bob Manocchia
Regular Advisor

Re: ssh without passwords problem

Thanks. The permissions on the server's .ssh directory were 775. I changed it to 700 and it worked. Thanks again.