Skip to Main Content

Cloud Platform

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Get error while trying to connect an SFTP from WAR deployed on Java Cloud Service

Haoye LuFeb 26 2016 — edited Feb 26 2016

Dear all

I have deployed my application to Java Cloud Service with JSCH framework, but getting error "com.jcraft.jsch.JSchException: java.security.AccessControlException: Direct socket connection not allowed to sftp.us2.cloud.oracle.com. Connection to other hosts should be performed only through the configured proxy."

I am using the SFTP server related to the cloud service.

pastedImage_3.png

This works when I test the same locally.

1. Is accessing an SFTP from JCS deployed application applicable? As I checked from https://docs.oracle.com/cloud/latest/javacs_gs/CSJSU/GUID-26A4BA7C-E89F-408E-ADEE-F4ACE785DC5F.htm#CSJSU7042, it seems direct socket connections is not allowed.

pastedImage_2.png

2. Is there any workaround? Eg, Adding a proxy for accessing an SFTP?

Regards

Haoye

This post has been answered by Jani Rautiainen-Oracle on Feb 26 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 25 2016
Added on Feb 26 2016
3 comments
1,211 views