I'm facing connection timeout when trying to connect with a public SFTP server on the cloud AEM instance. However, I'm able to do the handshake in the local cloud SDK instance. The same happens with private SFTP too where IP is also whitelisted with port. I have used Jsch Java based approach and the bundles are in active state.
Solved! Go to Solution.
On AEM as a Cloud Service you can connect by default only to external hosts on port 443 (https); if you want to connect to other ports, you have to explicitly allow this, see  for it.
Thanks for your reply @Jörg_Hoh. But our cloud are configured to enable advanced networking via egress IP to handshake with port 22 and the IP is whitelisted at SFTP server too. But still we face connection timed out