1828784 Members
2720 Online
109985 Solutions
New Discussion

ssh to hpux hangup

 
haux
Advisor

ssh to hpux hangup

When I connect to an HPUX server, the session hungup after some minutes.

Impossible to reconnect.


User1@Linux-PC:~$ ssh -vvvv -l User1 HPUX-1
OpenSSH_4.3p2 Debian-9, OpenSSL 0.9.8c 05 Sep 2006
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to HPUX-1 [10.10.5.20] port 22.
debug1: connect to address 10.10.5.20 port 22: Connection timed out
ssh: connect to host HPUX-1 port 22: Connection timed out



On the HPUX-1's file : /var/adm/syslog/syslog.log I can read this :

....
Apr 27 11:34:53 HPUX-1 sshd[19917]: warning: can\'t get client address: Connection reset by peer
Apr 27 11:34:53 HPUX-1 sshd[19917]: Could not write ident string to 0.0.0.0
Apr 27 11:34:41 HPUX-1 sshd[19917]: warning: can\'t get client address: Connection reset by peer
Apr 27 11:34:41 HPUX-1 sshd[19917]: Could not write ident string to 0.0.0.0
....

I verify on the Linux that i get always a valid IP


User1@Linux-PC:~# ifconfig
eth0 Lien encap:Ethernet HWaddr 00:18:8B:AA:8B:95
inet adr:10.10.11.127 Bcast:10.10.255.255 Masque:255.255.0.0
adr inet6: fe80::218:8bff:feaa:8b95/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1556 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:531445 (518.9 KiB) TX bytes:1680 (1.6 KiB)
Interruption:185

On the HPUX-1 I get this version of sshd:

root@HPUX-1:/home/User1 >#swlist | grep -i secur
T1471AA A.04.40.006 HP-UX Secure Shell




Any idea where is the problem ?!

Thanks
1 REPLY 1
Wouter Jagers
Honored Contributor

Re: ssh to hpux hangup

Try to make sure the HP box can resolve your PC correctly.

On the HPUX, try to add this line in /etc/hosts:

10.10.11.127 Linux-PC.yourdomain.com Linux-PC

And give it another shot.

Cheers,
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.