Skip to Content
0
Jun 18, 2015 at 04:34 AM

Port 22 outbound blocked?

163 Views

Hi all,

I'm developing an app which needs to transfer some data via SFTP. Everything works fine in local runtime, however once published to HCP the connection times out while trying to create socket on port 22.

I've tried with a more than sufficient timeout (as well as no timeout), and have tested the connection to the same host on port 443 which works fine. So it appears the problem may be due to port 22 outbound being blocked rather than not having long enough to establish a connection. Can anyone confirm whether port 22 outbound is blocked for HCP accounts? The comments here suggest not, but these were made over two years ago so not sure if anything has changed since then. Below is part of the trace...

com.jcraft.jsch.JSchException: timeout: socket is not established

at com.jcraft.jsch.Util.createSocket(Util.java:394)

at com.jcraft.jsch.Session.connect(Session.java:215)

Many thanks.


Regards,

Ian