issue while auto login using .ssh for HPUX

Hi,

While trying to supress password prompt using ssh. I have added .ssh folder manually and generated public key and added to authorized_keys file in the remote machine. But still it's prompting for passwords with the following message:

Permission denied (publickey,password,keyboard-interactive).

Any ideas on possible solution on this.

Thanks in advance.

check permissions on both sides. your home directory should not allow group or other write privileges, your .ssh directory should only allow the owner full privileges, same for the authorized_keys file.

chmod go-w $HOME
chmod 700 $HOME/.ssh
chmod 600 $HOME/.ssh/authorized_keys 

Sorry, tried your chmod options. but still not working. any more ideas?

if you have access to the remote side, you can start your own sshd process, on a available port higher than 1024, with verbose, or debug enabled, version depends, review the sshd man page for your system. this will require separate login session for each server.

remote_server$ sshd -d -d -p 4222
local_server$ ssh -v -v -p 4222 remote_server

sshd will let you know what is stopping the connection, if not, add another -d, and review the debug output for details.

Thanks for the reply.

But we dont have root access ..any work around ?

no need to be root so long as you use a port number higher than 1024. give it a try.