Operating System - HP-UX
1753797 Members
7089 Online
108805 Solutions
New Discussion юеВ

Re: SSH password less login not working

 
SOLVED
Go to solution
shameemsoft
Frequent Advisor

SSH password less login not working

Hello,

Copied public key to destination server. but password less login is not working. But same public key, i tried with different server. it is working. please find debug output below.

debug1: Host 'xxxx' is known and matches the RSA host key.
debug1: Found key in /homeroot/.ssh/known_hosts:19
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /homeroot/.ssh/identity
debug1: Trying private key: /homeroot/.ssh/id_rsa
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /homeroot/.ssh/id_dsa
debug1: read PEM private key done: type DSA
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: keyboard-interactive

OS is HPUNIX 11.31 update 6 & SSH version is

SecureShell A.05.30.009 HP-UX Secure Shell

Kindly provide your input to resolve this issue.

Regards
Shameem
11 REPLIES 11
Turgay Cavdar
Honored Contributor
Solution

Re: SSH password less login not working

On the destination server, the user home directory is writable by others or group?
rariasn
Honored Contributor

Re: SSH password less login not working

Hi:

>>> Copied public key to destination server. but password less login is not working. But same public key, i tried with different server. it is working. please find debug output below


Copied and add publick que to "authorized_keys" file

rgs,

shameemsoft
Frequent Advisor

Re: SSH password less login not working

Hello Turgey,

700 is home directory permission.

Regards
Shameem
Shibin_2
Honored Contributor

Re: SSH password less login not working

I think, you need to regenerate the RSA key.

See some threads for your reading.

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1418482
Regards
Shibin
shameemsoft
Frequent Advisor

Re: SSH password less login not working

Hi Rarisan,

I have copied public key into authroized_keys file only :).

Regards
Shameem
shameemsoft
Frequent Advisor

Re: SSH password less login not working

Hi Shibin,

I tried many times. But it is not working. I tried with other destination servers. It is working. only one server, i am facing this issue.

Regards
Shameem
Turgay Cavdar
Honored Contributor

Re: SSH password less login not working

Hi again,
Can you do a "loopback test" on the destination server? Create the keys (if not exist) on the destination server for the destination user.Then add the destination user's public key to authorized_keys. At last try to connect the user itself and see what happens..
Steven Schweda
Honored Contributor

Re: SSH password less login not working

> [...] i tried with different server. it is
> working. [...]

With my weak psychic powers, I can't see the
files on a working system or on the
non-working system. Have you compared them
(content, owner, permissions)? I also can't
see the actual ssh command, or who's running
it. (Does "/homeroot/" mean that this is the
"root" user? "root" is special.)

Are the ssh server configuration files the
same?

Is there anything interesting in the system
log file(s) on the non-working system?

> debug1: Authentications that can continue: publickey,password,keyboard-interactive
> debug1: Next authentication method: keyboard-interactive

Apparently, this server hates all your key
files, or else it hates you. (That's
especially likely if you're "root".)
shameemsoft
Frequent Advisor

Re: SSH password less login not working

Hello Guys,

Issue is resolved. But I am surprised...

I checked sshd_config file. PubkeyAuthentication is disbaled. I have enabled this parameter then restart secure shell. it started to working.

Also i checked in other servers, this paramter is disabled. but passwordless login is working.

So i tried to disbale it again on this server(problem server) and restarted secure shell.. it is continously working without password. No issue with this.

Do u have any idea about this?

Thank you guys for your support.

Regards
Shameem