The problem was with the machine executing the Java code. It didn't have the permission to connect to the remote server. The write() method was doing alright, but the read() method was throwing a java.net.SocketException: Connection reset. I fixed this problem with adding the client SSH key to the remote server known keys.
How to resolve java.net.SocketException: Connection reset java.net.SocketException: Connection reset This SocketException occurs on the server side when the client closed the socket connection before the response could be returned over the socket. For example, by quitting the browser before the reponse was retrieved. Connection reset simply means that a TCP RST was received. TCP RST packet is that the remote side telling you the connection on which Fix: WSUS Connection Error Reset Server Node On Windows Reduce the number of updates approved: If you have no ARM CPU based products, search for ARM … Connection Reset By Exchange 2010 server The SmartHost logs shows " connection reset by Exchange_server_name" The outbound traffic (From exchange -> to smarthost -> to internet -> destination servers) never gets delayed all messages are still delivered even when the "Inbound queue" of the exchange server resets the connection … Email connection reset | AT&T Community Forums
I see that you're happy to get on the internet and yes it can be annoying. However, your fix is not really a good fix. You're using a completely 'John Doe' socks5 proxy server that any hacker
IIS resets connection (ERR_CONNECTION_RESET) : The Dec 19, 2019 Connection reset RST,ACK - Wireshark Q&A
OpenSSH Connection Reset by [IP ADDR] / Networking, Server
Disable Your Antivirus Program or Firewall App. Your antivirus or firewall could be the cause of the err_connection_reset. If this is the case, it is best to leave it that way. How to easily fix "Connection Reset" error problem! - Tips I see that you're happy to get on the internet and yes it can be annoying. However, your fix is not really a good fix. You're using a completely 'John Doe' socks5 proxy server that any hacker DotW: reset-server, reset-client or silent drop Jul 18, 2019 9 Ways to Fix Err_Connection_Reset Error on Google Chrome