Skip to content

SFTP – how to transfer files to a server and create an SFTP-only user

How to transfer files to a VPS over SFTP. Connecting with the sftp command from macOS, Linux and Windows, the main put and get commands, connecting through FileZilla, a separate SFTP-only user with access to a single folder through chroot, and common errors. Tested on Debian 12 with OpenSSH 9.2.