on 2025 Jan 28 12:59 PM
Hello Experts,
I’m setting up connectivity from SAP CPI to a local FTP server. The TCP connection from the Cloud Connector to the FTP server is working, and the connection is reachable.
The connectivity test from SAP CPI succeeds when "Check Directory Access" is off, but when enabled, I get the error: java.net.SocketException: SOCKS5 command failed with status: FORBIDDEN.
Similarly, when pushing a file through CPI interface, I receive:
org.apache.camel.component.file.GenericFileOperationFailedException: File operation failed: 229 Entering Extended Passive Mode (|||65087|) SOCKS5 command failed with status: FORBIDDEN.
I checked SAP Note 0003076681, which mentions ensuring passive mode is enabled and configuring the data port range. The FTP admin confirmed passive mode is enabled but couldn’t share the port range. I’ve only configured port 20 in the Cloud Connector, without a port range. What could be the issue? Do I need to configure a port range, or is there something else required?
Thanks and Regards,
Mohit
Request clarification before answering.
Hello,
I had the same issue and resolved it as follow (I am aware that you already confirmed passive mode is enabled)
1.- Checking if passive mode is enabled
2.- Getting the port range for passive mode. This is mandatory without this info it won't work, so your FTP admin should be able to provide that info. For Linux, there is a "ftpd" conf file in /etc where you can check the range, My scenario was with Linux.
3.- In cloud connector you need two entries:
a) One entry with the port range of passive mode
b) additional entry for port 21 (normal FTP port) --> This is the control connection
That should do it, it worked for me.
Good luck.
Kind regards!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 6 | |
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.