- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ssh_exchange_identification: read: Connection ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2008 06:17 AM
тАО11-25-2008 06:17 AM
My issue is ssh get frequently disconnected with the following messages:-
And when SSh gets disconnected, Also telnet dosent work but I can still ping the server
ssh_exchange_identification: read: Connection reset by peer
ssh: connect to host port 22: Connection refused
Other Findings:-
# ps -ef | grep sshd
root 24563 5894 0 08:39:54 ? 0:00 sshd: root@pts/0
root 24678 24596 0 08:44:24 pts/0 0:00 grep sshd
root 5894 1 0 16:33:53 ? 0:00 /opt/ssh/sbin/sshd
Here are some more errors found ...
sshd[5894]: Server listening on :: port 22.
sshd[5894]: Server listening on 0.0.0.0 port 22.
sshd[5904]: error: Bind to port 22 on :: failed: Address already in use.
sshd[5904]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
sshd[5904]: fatal: Cannot bind any address.
I also see many debugs when i issue the below command
# ssh -v hpbox01
OpenSSH_5.1p1+sftpfilecontrol-v1.2-hpn13v5, OpenSSL 0.9.7m 23 Feb 2007
HP-UX Secure Shell-A.05.10.007, HP-UX Secure Shell version
debug1: Reading configuration data /opt/ssh/etc/ssh_config
debug1: Connecting to hpbox01 [10.3.20.23] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/3
debug1: identity file /.ssh/identity type -1
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_5.1p1+sftp
filecontrol-v1.2-hpn13v5
debug1: match: OpenSSH_5.1p1+sftpfilecontrol-v1.2-hpn13v5 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1p1+sftpfilecontrol-v1.2-hpn13v5
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: AUTH STATE IS 0
debug1: REQUESTED ENC.NAME is 'aes128-cbc'
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: REQUESTED ENC.NAME is 'aes128-cbc'
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) 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
The authenticity of host 'hpbox01 (10.3.20.23)' can't be established.
RSA key fingerprint is 90:a8:40:29:74:aa:17:43:b0:df:f4:a7:59:3b:b2:5e.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added 'hpbox01,10.3.20.23' (RSA) to the list of known hosts.
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-interacti
ve
debug1: Next authentication method: publickey
debug1: Trying private key: /.ssh/identity
debug1: Trying private key: /.ssh/id_rsa
debug1: Trying private key: /.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
Password:
How will I be able to resolve this..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2008 06:29 AM
тАО11-26-2008 06:29 AM
SolutionDo you have any unusual messages in /var/adm/syslog/syslog.log like "can not fork" or "malloc" errors? Your applications are probably affected too.. do you have any logfiles with error messages?
Does this problem go away after quite some time or do you need to reboot?
If it's like that you need to take a look to your general system ressources, and maybe increase system memory.
My 2 cents,
Armin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2008 08:43 PM
тАО11-26-2008 08:43 PM
Re: ssh_exchange_identification: read: Connection reset by peer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2008 09:12 PM
тАО11-26-2008 09:12 PM
Re: ssh_exchange_identification: read: Connection reset by peer
If possible just remove the ssh software and reinstall it with newer version.
http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/openssh-5.1p1/
or
http://openssh.org/openbsd.html
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2008 09:26 PM
тАО11-26-2008 09:26 PM
Re: ssh_exchange_identification: read: Connection reset by peer
duplicate posting. The other half is already
closed:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1291605
It would have been nice if the poster had
taken the time to close this thread, too, but
it hasn't happened.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2008 08:24 AM
тАО12-04-2008 08:24 AM