Operating System - HP-UX
1832864 Members
2837 Online
110048 Solutions
New Discussion

openssh automatic login problem

 
Paulo Azevedo_1
New Member

openssh automatic login problem

Hi

I have 02 server with HP-UX 11.0
and openssh 3.0.1p
and I have some problems with ssh
It's very slow and I try everthing
( all forms, RSA, rhosts, etc )to make a connection without key the
password but always ask me the password

Anybody have a hint

thanks a lot
5 REPLIES 5
Craig Rants
Honored Contributor

Re: openssh automatic login problem

Here are my notes for creating a key based trust, this should work for what you want to do.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Paulo Azevedo_1
New Member

Re: openssh automatic login problem

Hi C,

I do all itens of your document
but my problem not solved
I have the follows messages :

root@piranha1 - /opt/openssh2/etc#ssh -v gusg01
OpenSSH_3.0p1, SSH protocols 1.5/2.0, OpenSSL 0x0090600f
debug1: Reading configuration data /opt/openssh2/etc/ssh_config
debug1: Seeded RNG with 31 bytes from programs
debug1: Seeded RNG with 3 bytes from system calls
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: restore_uid
debug1: ssh_connect: getuid 0 geteuid 0 anon 1
debug1: Connecting to gusg01 [172.30.1.11] port 22.
debug1: temporarily_use_uid: 0/3 (e=0)
debug1: restore_uid
debug1: temporarily_use_uid: 0/3 (e=0)
debug1: restore_uid
debug1: Connection established.
debug1: read PEM private key done: type DSA
debug1: read PEM private key done: type RSA
debug1: identity file /.ssh/identity type 0
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_dsa type -1
debug1: Remote protocol version 1.5, remote software version OpenSSH_3.0p1
debug1: match: OpenSSH_3.0p1 pat ^OpenSSH
debug1: Local version string SSH-1.5-OpenSSH_3.0p1
debug1: Waiting for server public key.
debug1: Received server public key (768 bits) and host key (1024 bits).
The authenticity of host 'gusg01 (172.30.1.11)' can't be established.
RSA1 key fingerprint is 26:66:9b:d4:3a:75:03:19:2a:16:43:b7:5a:29:bb:2d.

you have other hint

thanks a lot
Dörnhoff
New Member

Re: openssh automatic login problem

Hi

Start the sshd in the debugmode on another port and you know whats up.

srva> # sshd -d4 -p 56789

srvb> $ scp -P 56789 foo srva:/tmp/bar

In my case i have the wrong permissions at the $HOME. 777 instead 755

Steven E. Protter
Exalted Contributor

Re: openssh automatic login problem

Consider upgrading to a more recent version of Secure Shell(openssh)

http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA

You also may want to try this document to exchange public keys.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Elmar P. Kolkman
Honored Contributor

Re: openssh automatic login problem

Also try removing the host from your ~/.ssh/known_hosts file on the server you are trying to copy from and then retry the ssh connection. Confirm you want to install the host key.

From the debugging output, it looks like your host key has changed...

For testing, you could also move the old known_hosts file out of the way instead of editting the file.
Every problem has at least one solution. Only some solutions are harder to find.