IBM Support

Using the SFTP server front side handler to access absolute paths

Troubleshooting


Problem

When using the SFTP server front side handler with a Multi-Protocol Gateway service that is configured with a static back-end, all paths are relative to the user directory on the back-end FTP server. How do you access files using an absolute path?

Symptom

Consider the following two examples of relative directory paths on the back-end FTP server:

Case 1: In this case, the effective default directory of the backend ftp server is /root/.

  • The value of the SFTP server Default directory is "/"
  • The value of the FTP back-end is ftp://root@ftpserver

    A PUT request from the SFTP client of the file dir/file will be put on the /root/dir/file path of the FTP server.

    A GET request from the SFTP client of the file /file will be fetched from the /root/file path of the FTP server.

Case 2: In this case, the effective default directory of the backend ftp server is /home/user/defaultdir. Access to /home/user is permitted by using fully qualified path name requests. (See the following GET request example.)
  • The value of the SFTP server Default Directory is /defaultdir
  • The value of the FTP back-end is ftp://user@ftpserver


  • A PUT request from the SFTP client of the file dir/file will be put on the /home/user/defaultdir/dir/file path of the FTP server.

    A GET request from the SFTP client of the file /file will be fetched from the /home/user/file path of the FTP server.

[{"Product":{"code":"SS9H2Y","label":"IBM DataPower Gateway"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"General","Platform":[{"code":"PF009","label":"Firmware"}],"Version":"4.0.2;4.0.1;5.0.0;6.0.0;6.0.1;7.0.0","Edition":"Edition Independent","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
08 June 2021

UID

swg21407532