Re: [Proftpd-user] SFTP Client : SocketError: WSAECONNRESET An existing connection was forcibly closed by the remote host.

TJ Saunders <[email protected]>
Newsgroups gmane.network.proftpd.user
Message-ID <1519513683.2766307.1282249048.4219F906@webmail.messagingengine.com>
> We have a customer SFTP client that experiences this error  
> " SocketError: WSAECONNRESET An existing connection was forcibly closed 
> by the remote host."
> they are running the SFTP process inside MS SQL Server (SSIS).  I have 
> examined our server side log and do not see the server sending a 
> disconnect to the client.  So I am guessing that a router/firewall in 
> between is terminating the socket.

That's one possibility; another is that ProFTPD is treating the connection as idle (e.g. due to TimeoutIdle, TimeoutNoTransfer, etc) and is closing the connection abruptly, without sending a DISCONNECT message explicitly to the client.

In yours server logs, do you see these connections from the client?  Can you see what the last messages logged, for that session, are?

> They are actively downloading data but this error always pop up around 
> after 10 minutes of data transfer when a rekey is  happening  

Ah.  Some SFTP clients do not handle SSH rekeying as the mod_sftp module would like.  You might try explicitly configuring mod_sftp to not expect or require rekeying, using:

  <IfModule mod_sftp.c>
    ...

    SFTPRekey none
    ...
  </IfModule>

Cheers,
TJ

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ProFTPD Users List   <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.