SFTP Technical documentation (Admin)
Introduction
This article describes how to automate file operations in netfiles using the netfiles SSH File Transfer Protocol interface.
The interface is based on version 3 of the SSH File Transfer Protocol as defined in IETF memo SSH File Transfer Protocol draft-02 and some extensions specified in IETF memo SSH File Transfer Protocol draft-13.
Compatible package types
Package types accepted by the server:
Command [package type] Remarks
SSH2_FXP_INIT [1] | Anounced SFTP Version: 3
SSH2_FXP_OPEN [3] |
SSH2_FXP_CLOSE [4] |
SSH2_FXP_READ [5] |
SSH2_FXP_WRITE [6] |
SSH2_FXP_LSTAT [7] |
SSH2_FXP_FSTAT [8] |
SSH2_FXP_SETSTAT [9] | Setting an access time is ignored in all other cases SSH2_FX_OP_UNSUPPORTED is returned
SSH2_FXP_FSETSTAT [10] | Setting an access time is ignored in all other cases SSH2_FX_OP_UNSUPPORTED is returned
SSH2_FXP_OPENDIR [11] |
SSH2_FXP_READDIR [12] |
SSH2_FXP_REMOVE [13] |
SSH2_FXP_MKDIR [14] |
SSH2_FXP_RMDIR [15] |
SSH2_FXP_REALPATH [16] |
SSH2_FXP_STAT [17] |
SSH2_FXP_RENAME [18] |
SSH2_FXP_READLINK [19] | Returns SSH2_FX_OP_UNSUPPORTED
SSH2_FXP_SYMLINK [20] | Returns SSH2_FX_OP_UNSUPPORTED
SSH2_FXP_EXTENDED [200] | One extension is understood: “posix-rename@openssh.com”
Package types provided by the server:
Command [package type] Remarks
————————–|——————————
SSH2_FXP_VERSION [2] |
SSH2_FXP_STATUS [101] |
SSH2_FXP_HANDLE [102] |
SSH2_FXP_DATA [103] |
SSH2_FXP_NAME [104] |
SSH2_FXP_ATTRS [105] |
Login
Automated login via ssh/sftp is possible with user name and password or user name and ssh Public Key. For details on OpenSSH Public Key Authentication see SFTP Passwordless authentication.
Login takes place via SSH V2. SSH V1 or V1.5 are not implemented. ssh login uses the SFTP subsystem, not an ssh terminal session (shell).
Notes
The user name must correspond to the netfiles user name listed in the personal profile of the user. To access the personal profile open Administration>Groups and users>All users and click onto the respective account.
The sftp interface must be actived for the entire data room and the individual user, see SFTP netfiles Integration in Windows.
Instead of standard port 22, port 3333 is used.
For any questions, contact netfiles support.