Operating System - HP-UX
1849088 Members
10246 Online
104041 Solutions
New Discussion

Re: login issue--ssh/telnet

 
Anil
Advisor

login issue--ssh/telnet

I'm not able to login to my server remotely. When I try using ssh ..it will ask for login name , then get hung. If I try telnet ..no response.Even telnet 0 from the server also gets hung.

OS --HP-UX 11.23 IA

Please advise,

Thanking you in advance,
5 REPLIES 5
dictum9
Super Advisor

Re: login issue--ssh/telnet

Try restarting inetd daemon:

this will find the process id inetd and run kill -HUP on it



kill -HUP `ps -fe | grep inetd | grep -v grep | awk '{print $2}'`

Anil
Advisor

Re: login issue--ssh/telnet

Please find the response when I try to do ssh in debug mode.
# ssh -v root@16.138.184.72
OpenSSH_3.7, SSH protocols 1.5/2.0, OpenSSL 0.9.7c 30 Sep 2003
HP-UX_Secure_Shell-A.03.71.006.%ic71N, HP_UX Secure Shell version
debug1: Reading configuration data /opt/ssh/etc/ssh_config
debug1: Connecting to 16.138.184.72 [16.138.184.72] port 22.
debug1: Connection established.
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.2p1-hpn
debug1: match: OpenSSH_4.2p1-hpn pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.7
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '16.138.184.72' is known and matches the RSA host key.
debug1: Found key in /.ssh/known_hosts:1
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
Connection closed by 16.138.184.72
debug1: Calling cleanup 0x7efa3218(0x0)
#

Thanks,
Anil
dictum9
Super Advisor

Re: login issue--ssh/telnet

Make sure the $HOME/.ssh directory is recursively chmoded to 700. If it's not, ssh will consider that the public/private key set is world-readable and therefore open to the man-in-the-middle attack. I've seen this situation occur before. It's very tricky. And "it's not a bug, it is a feature.".


So:

chmod -R 700 .ssh

Anil
Advisor

Re: login issue--ssh/telnet

Hi all,

When I try telnet also ,its get hung. Please find the following response when I try telnet.

# telnet 16.138.184.72
Trying...
Connected to 16.138.184.72.
Escape character is '^]'.


Any suggestions please..
FLQ
Valued Contributor

Re: login issue--ssh/telnet

Hi Anil,

what is your syslog.log tells you?

What about /etc/hosts.allow, /etc/hosts.deny?


Let me know

Francis