ssh_ exchange-identification: Connection closed by remote host


 
Thread Tools Search this Thread
Operating Systems Linux ssh_ exchange-identification: Connection closed by remote host
# 1  
Old 11-04-2008
ssh_ exchange-identification: Connection closed by remote host

Dear All,

Recently our server has been giving the error:

"ssh_ exchange-identification: Connection closed by remote host"

The error causes the server to become in accessible via ssh and the services are stopped/hung. The server has to be restarted to make it working normal again.
The server is working on RHEL3.

Pls. help in finding the solution to the problem.


Regards,
Vinod.
# 2  
Old 11-14-2008
It's found that the server gives some SCSI related error. The problem occurs sometimes after 2 months and sometimes every week. Should i replace the server or what? Pls. suggest ?

Regards,
Vinod.


Quote:
Originally Posted by vguleria
Dear All,

Recently our server has been giving the error:

"ssh_ exchange-identification: Connection closed by remote host"

The error causes the server to become in accessible via ssh and the services are stopped/hung. The server has to be restarted to make it working normal again.
The server is working on RHEL3.

Pls. help in finding the solution to the problem.


Regards,
Vinod.
# 3  
Old 11-16-2008
vguleria,

Did you change the network interface of the system? or the IP address of the system? Are you accessing that on other host when that error occurs? If yes once you rebooted generate ssh key for the system and copy that to the host your having errors.
# 4  
Old 11-20-2008
Thanks for the reply csonhand,

I also have the trace of the server's /var/secure/log/messages which is something related to SCSI:

Sep 17 07:42:59 <MyHostName> kernel: scsi1:0:0:0: Attempting to abort cmd f6c94000: 0x2a 0x0 0x6 0xa3 0x7f 0x34 0x0 0x0 0x8 0x0
Sep 17 07:42:59 <MyHostName> kernel: scsi1: At time of recovery, card was not paused
Sep 17 07:42:59 <MyHostName> kernel: >>>>>>>>>>>>>>>>>> Dump Card State Begins <<<<<<<<<<<<<<<<<
Sep 17 07:42:59 <MyHostName> kernel: scsi1: Dumping Card State at program address 0x27 Mode 0x22
Sep 17 07:42:59 <MyHostName> kernel: Card was paused
Sep 17 07:42:59 <MyHostName> kernel: HS_MAILBOX[0x0] INTCTL[0xc0] SEQINTSTAT[0x0] SAVED_MODE[0x11]
Sep 17 07:42:59 <MyHostName> kernel: DFFSTAT[0x31] SCSISIGI[0x0] SCSIPHASE[0x0] SCSIBUS[0x0]
Sep 17 07:42:59 <MyHostName> kernel: LASTPHASE[0x1] SCSISEQ0[0x0] SCSISEQ1[0x12] SEQCTL0[0x10]
Sep 17 07:42:59 <MyHostName> kernel: SEQINTCTL[0x0] SEQ_FLAGS[0xc0] SEQ_FLAGS2[0x0] SSTAT0[0x0]
Sep 17 07:42:59 <MyHostName> kernel: SSTAT1[0x0] SSTAT2[0x0] SSTAT3[0x0] PERRDIAG[0x0]
Sep 17 07:42:59 <MyHostName> kernel: SIMODE1[0xa4] LQISTAT0[0x0] LQISTAT1[0x0] LQISTAT2[0x0]
Sep 17 07:42:59 <MyHostName> kernel: LQOSTAT0[0x0] LQOSTAT1[0x0] LQOSTAT2[0x0]
Sep 17 07:42:59 <MyHostName> kernel:
Sep 17 07:42:59 <MyHostName> kernel: SCB Count = 32 CMDS_PENDING = 1 LASTSCB 0x18 CURRSCB 0x18 NEXTSCB 0x0
Sep 17 07:42:59 <MyHostName> kernel: qinstart = 45712 qinfifonext = 45712
Sep 17 07:43:00 <MyHostName> kernel: QINFIFO:
Sep 17 07:43:00 <MyHostName> kernel: WAITING_TID_QUEUES:
Sep 17 07:43:00 <MyHostName> kernel: Pending list:
Sep 17 07:43:00 <MyHostName> kernel: 9 FIFO_USE[0x0] SCB_CONTROL[0x64] SCB_SCSIID[0x5]
Sep 17 07:43:00 <MyHostName> kernel: Total 1
Sep 17 07:43:00 <MyHostName> kernel: Kernel Free SCB list: 4 26 12 8 20 3 11 28 27 19 7 6 29 25 31 17 1 23 24 21 15 22 18 13 5 0 30 10 2 16 14
Sep 17 07:43:00 <MyHostName> kernel: Sequencer Complete DMA-inprog list:
Sep 17 07:43:00 <MyHostName> kernel: Sequencer Complete list:
Sep 17 07:43:00 <MyHostName> kernel: Sequencer DMA-Up and Complete list:
Sep 17 07:43:00 <MyHostName> kernel:
Sep 17 07:43:00 <MyHostName> kernel: scsi1: FIFO0 Free, LONGJMP == 0x80ff, SCB 0x0
Sep 17 07:43:00 <MyHostName> kernel: SEQIMODE[0x3f] SEQINTSRC[0x0] DFCNTRL[0x0] DFSTATUS[0x89]
Sep 17 07:43:00 <MyHostName> kernel: SG_CACHE_SHADOW[0x2] SG_STATE[0x0] DFFSXFRCTL[0x0]
Sep 17 07:43:00 <MyHostName> kernel: SOFFCNT[0x0] MDFFSTAT[0x5] SHADDR = 0x00, SHCNT = 0x0
Sep 17 07:43:00 <MyHostName> kernel: HADDR = 0x00, HCNT = 0x0 CCSGCTL[0x10]
Sep 17 07:43:00 <MyHostName> kernel: scsi1: FIFO1 Free, LONGJMP == 0x81ed, SCB 0x18
Sep 17 07:43:00 <MyHostName> kernel: SEQIMODE[0x3f] SEQINTSRC[0x0] DFCNTRL[0x4] DFSTATUS[0x89]
Sep 17 07:43:00 <MyHostName> kernel: SG_CACHE_SHADOW[0x2] SG_STATE[0x0] DFFSXFRCTL[0x0]
Sep 17 07:43:00 <MyHostName> kernel: SOFFCNT[0x0] MDFFSTAT[0x5] SHADDR = 0x00, SHCNT = 0x0
Sep 17 07:43:00 <MyHostName> kernel: HADDR = 0x00, HCNT = 0x0 CCSGCTL[0x10]
Sep 17 07:43:00 <MyHostName> kernel: LQIN: 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
Sep 17 07:43:00 <MyHostName> kernel: scsi1: LQISTATE = 0x0, LQOSTATE = 0x0, OPTIONMODE = 0x42
Sep 17 07:43:00 <MyHostName> kernel: scsi1: OS_SPACE_CNT = 0x20 MAXCMDCNT = 0x0
Sep 17 07:43:00 <MyHostName> kernel: SIMODE0[0xc]
Sep 17 07:43:00 <MyHostName> kernel: CCSCBCTL[0x0]
Sep 17 07:43:00 <MyHostName> kernel: scsi1: REG0 == 0x18, SINDEX = 0x122, DINDEX = 0xe1
Sep 17 07:43:00 <MyHostName> kernel: scsi1: SCBPTR == 0x4, SCB_NEXT == 0x0, SCB_NEXT2 == 0x0
Sep 17 07:43:00 <MyHostName> kernel: CDB 2a 0 2 80 a9 ba
Sep 17 07:43:00 <MyHostName> kernel: STACK: 0x15 0x125 0x125 0x125 0x125 0x125 0x125 0x29
Sep 17 07:43:00 <MyHostName> kernel: <<<<<<<<<<<<<<<<< Dump Card State Ends >>>>>>>>>>>>>>>>>>
Sep 17 07:43:00 <MyHostName> kernel: DevQ(0:0:0): 0 waiting
Sep 17 07:43:00 <MyHostName> kernel: DevQ(0:4:0): 0 waiting
Sep 17 07:43:00 <MyHostName> kernel: (scsi1:A:0:0): Device is disconnected, re-queuing SCB
Sep 17 07:43:00 <MyHostName> kernel: Recovery code sleeping
Sep 17 07:43:00 <MyHostName> kernel: (scsi1:A:0:0): Abort Tag Message Sent
Sep 17 07:43:00 <MyHostName> kernel: (scsi1:A:0:0): SCB 9 - Abort Completed.
Sep 17 07:43:00 <MyHostName> kernel: Recovery SCB completes
Sep 17 07:43:00 <MyHostName> kernel: found == 0x1
Sep 17 07:43:00 <MyHostName> kernel: Recovery code awake

thanks,
VG.

Quote:
Originally Posted by csorhand
vguleria,

Did you change the network interface of the system? or the IP address of the system? Are you accessing that on other host when that error occurs? If yes once you rebooted generate ssh key for the system and copy that to the host your having errors.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Telnet in script Connection closed by foreign host

Hello, I'm trying to learn and automate some tasks via a script, but my first ever script failed with "connection closed by foreign host" error. I checked the other discussions but it didn't help. Could you please help? #!/bin/bash ( sleep 2 echo open x.x.x.x 23 sleep 2 echo user sleep 2... (1 Reply)
Discussion started by: Myrtle
1 Replies

2. Shell Programming and Scripting

Telnet error- Escape character is '^]' and connection closed by foreign host

In program, I want to telnet the ports present in telnet.txt file and capture screenshot of open port which is opened on new terminal. Problems: Escape character is '^]' and Connection closed by foreign host. Loop is not working properly. It only take one ports and closed the connection. ... (9 Replies)
Discussion started by: sk151993
9 Replies

3. Shell Programming and Scripting

Telnet Bash Script (Connection closed by foreign host.)

Hello Everyone, My following script is giving me problems, when the SIP trunk goes down and the telnet session is started and just when the command is about to complete the connection is closed then script restarts. I have noticed that as soon the script types in "sys re" or "sys rebo" or... (6 Replies)
Discussion started by: jeetz
6 Replies

4. Red Hat

Connection closed by host error in rhel 6 Linux

Hi All, I am new to Redhat Enterprise Linux 6 version. I am facing an issue with my lab server which is having RHEL6 lab1:root> uname -a Linux lab1 2.6.32-358.18.1.el6.x86_64 #1 SMP Fri Aug 2 17:04:38 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux I am getting this error for every 18 minutes 30... (0 Replies)
Discussion started by: go2suresh1979
0 Replies

5. HP-UX

Connection closed by foreign host

I am trying to connect to my HP server from remote machine. It gets connected but once credential are provided the connection is closed. adroit:/home/seo/hitendra 32 ] telnet myserv1 Trying... Connected to myserv1. Escape character is '^]'. Local flow control on Telnet TERMINAL-SPEED... (4 Replies)
Discussion started by: hiten.r.chauhan
4 Replies

6. Red Hat

Unable to SSH into machine - ssh_exchange_identification: Connection closed by remote host

For a few days now I have been experiencing issues when trying to SSH into 1 of my machine. I get the following output when running 'ssh -vvv': server1:/home/mymadq> ssh -l root -vvv server2 OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 debug1: Reading configuration data /etc/ssh/ssh_config... (3 Replies)
Discussion started by: jaapar
3 Replies

7. UNIX for Advanced & Expert Users

"Connection closed by remote host" while doing ssh to a solaris box

Hi All, When i try to do ssh from a linux to solaris box its throughing "Connection closed by remote host". Please not that this error is not occuring every time i do ssh, it occurs at random timing( Mostly ssh is successful) - unfortunately my script which is doing ssh is falling at this time... (4 Replies)
Discussion started by: pkumar7
4 Replies

8. UNIX for Dummies Questions & Answers

ssh_exchange_identification: Connection closed by remote host Connection closed

Hi Everyone, Good day. Scenario: 2 unix servers -- A (SunOS) and B (AIX) I have an ftp script to sftp 30 files from A to B which happen almost instantaneously i.e 30 sftp's happen at the same time. Some of these sftp's fail with the following error: ssh_exchange_identification: Connection... (1 Reply)
Discussion started by: jeevan_fimare
1 Replies

9. Shell Programming and Scripting

ssh_exchange_identification: Connection closed by remote host

hi i am trying to connect the frontend server using ssh i got the following error ssh_exchange_identification: Connection closed by remote host can anyone help please (1 Reply)
Discussion started by: Satyak
1 Replies

10. IP Networking

FTP - Connection Closed By Remote Host

Hi, I am having a problem with our AIX 4.3.3 Server accessing FTP. The error is " Connection Closed By Remote Host". Scenario: Since i put a default gateway on the server FTP connection is having a problem but when i remove the default gateway it will works fine.. Is there any way not... (1 Reply)
Discussion started by: mouglybean
1 Replies
Login or Register to Ask a Question