ssh_exchange_identification: Connection closed by remote host Connection closed


 
Thread Tools Search this Thread
# 1  
Old 02-04-2009
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 closed by remote host
Connection closed


Its not the same files everyday which give me this sort of trouble.

Could you please provide your insights to solve this.


Thanks,
G1
# 2  
Old 02-05-2009
Is it possible that one of your systems has run out of file descriptors? Because every socket is also a "file" in Unix and also occupies FDs. Just a wild guess anyway.

Have you checked the SSH log at the server side and does that give you any clues?
 

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Telnet error- Escape character is '^]' and connection closed by foreign host sk151993 Shell Programming and Scripting 9 04-18-2017 12:09 PM
Telnet Bash Script (Connection closed by foreign host.) jeetz Shell Programming and Scripting 6 08-02-2014 01:15 PM
Connection closed by host error in rhel 6 Linux go2suresh1979 Red Hat 0 04-16-2014 08:50 AM
How keep running a program n an another computer via a connection ssh when the connection is closed? TomTomGre UNIX for Advanced & Expert Users 2 02-15-2013 08:29 AM
"Connection closed by foreign host error" in Solaris 10 kraljic Solaris 9 11-12-2012 06:19 AM
Connection closed by foreign host hiten.r.chauhan HP-UX 4 03-03-2011 09:15 AM
Unable to SSH into machine - ssh_exchange_identification: Connection closed by remote host jaapar Red Hat 3 09-26-2010 07:48 AM
Tomcat Connection closed lain UNIX for Advanced & Expert Users 0 04-16-2010 06:15 AM
shell script/telnet - Remove/Control "Connection closed by foreign host" phpfreak Shell Programming and Scripting 2 02-28-2010 10:56 AM
"Connection closed by remote host" while doing ssh to a solaris box pkumar7 UNIX for Advanced & Expert Users 4 11-25-2009 10:42 AM
ftp first connection closed robertngo HP-UX 4 06-28-2009 08:04 PM
ssh_ exchange-identification: Connection closed by remote host vguleria Linux 3 11-20-2008 04:31 AM
ssh_exchange_identification: Connection closed by remote host Satyak Shell Programming and Scripting 1 08-18-2008 09:27 AM
"421 service not available, remote server has closed connection."? vishaldsh Cybersecurity 1 09-18-2007 11:12 PM
FTP - Connection Closed By Remote Host mouglybean IP Networking 1 10-26-2004 09:15 AM