You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm using sshj recently and with great results, so I like it.
But I have a question: For one of out internal sftp servers I have to setup a vpn.
When I forget that, I get a timeout exception from sshj, but a connection exception should be
more logical to me.
Caused by: java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:607)
at net.schmizz.sshj.SocketClient.connect(SocketClient.java:138)
I've configured 5 seconds timeout for the ssh client of sshj, but the exception above is within 1 second
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm using sshj recently and with great results, so I like it.
But I have a question: For one of out internal sftp servers I have to setup a vpn.
When I forget that, I get a timeout exception from sshj, but a connection exception should be
more logical to me.
Caused by: java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:607)
at net.schmizz.sshj.SocketClient.connect(SocketClient.java:138)
I've configured 5 seconds timeout for the ssh client of sshj, but the exception above is within 1 second
Beta Was this translation helpful? Give feedback.
All reactions