KB Article #44188

How to configure directory name using SFTP to an OpenSSH server

Problem

How to configure directory name using SFTP to an OpenSSH server


Resolution


In SFTP the path set in the directory name (dir_name) field is interpreted as an absolute path for the remote SFTP server.


For example, unless the user is chrooted, "dir_name=/" will mean the root of the remote server (and thus, attempting to upload to it will produce an error in Gateway such as "Remote file open failure," because of Unix rights), rather than the user's home directory.


To access the home directory, leave dir_name blank, or set it to the absolute path (for example, /home/user/).