Moving files to and from your server with SFTP
SFTP runs over the SSH service your server already has, so there is nothing extra to install and every byte travels encrypted.
Do I need to install anything to use SFTP?
No. Every system we install ships OpenSSH with its SFTP subsystem enabled, so any account that can log in over SSH can also transfer files. On your own computer, macOS and Linux include the sftp and scp commands, and Windows 10 and 11 include them in the built-in OpenSSH client. Graphical clients such as FileZilla or WinSCP speak the same protocol and use the same keys.
How do I upload and download from the command line?
Open an interactive session with sftp, then move around with familiar commands. put sends a file to the server, get fetches one, and lcd changes the folder on your own machine.
sftp -i ~/.ssh/id_ed25519 deploy@192.0.2.40 sftp> cd /srv/releases sftp> put -r ./build-412 sftp> lcd ~/Downloads sftp> get /var/log/nginx/access.log.1 sftp> bye
For one-off copies scp is shorter. Since OpenSSH 9 it uses the SFTP protocol underneath, so it behaves the same way on modern systems.
scp -P 22 ./db-2026-12-01.sql.zst ops@192.0.2.40:/var/backups/ scp ops@192.0.2.40:/etc/nginx/nginx.conf ./nginx-copy.conf
How do I resume a large upload that broke off?
Use reput or reget inside sftp, which continue from where the partial file stopped. For anything above a few gigabytes, or a folder with thousands of files, rsync over SSH is the better tool because it compares both sides and sends only what is missing; the Copy data between servers with rsync guide covers it in depth.
sftp ops@192.0.2.40 sftp> reput dataset-2026.tar /data/incoming/dataset-2026.tar
How fast will transfers be?
Usually limited by the slower end of the path, not by the server. Every machine has at least a 1 Gbps public port in Europe and Canada, which moves roughly 110 MB per second in practice; Business models start at 3 Gbps and Storage 3 machines at 10 Gbps. Over a long distance, a single SSH stream can fall short of the port speed because of latency, so run two or three transfers in parallel when you move a large set of files to or from another continent.
Can I give a partner an upload folder without shell access?
Yes, with a chrooted SFTP-only account. The user sees only one directory tree and cannot run commands. Create a group for such users, then add a Match block to the SSH configuration.
groupadd sftponly useradd -m -d /srv/sftp/acme -s /usr/sbin/nologin -G sftponly acme chown root:root /srv/sftp/acme && chmod 755 /srv/sftp/acme mkdir /srv/sftp/acme/upload && chown acme:acme /srv/sftp/acme/upload
Match Group sftponly
ChrootDirectory %h
ForceCommand internal-sftp -u 0027
AllowTcpForwarding no
X11Forwarding no
The chroot directory itself must be owned by root and not writable by the user; the user writes into the upload subfolder. Check the syntax with sshd -t before reloading the SSH service.
Which login method should SFTP users have?
Keys for staff and automated jobs, and a long password only where a partner truly cannot manage keys. If you keep passwords for the sftponly group, allow them for that group alone and leave everyone else on keys:
Match Group sftponly
PasswordAuthentication yes
Pair that with a rate limit on new SSH connections, described in Build an iptables firewall, so password guessing stays slow and noisy.
What about plain FTP?
Avoid it on a public server. Classic FTP sends passwords in clear text and needs a range of extra ports for data connections, which complicates the firewall. If an old device can only speak FTP, run an FTPS server with TLS required and restrict it to that device's address. Everything else should use SFTP, which needs only port 22 and the SSH service that is already running.
Where should uploaded files live?
On the drive that suits the data. Machines with mixed drives, such as STORAGE-2 2024 with 2x 960 GB SSD NVMe (system) + 2x 22 TB HDD SAS, Soft RAID, let you keep the system on NVMe and put bulk uploads on the large hard drives. Mount the large array at a path like /srv/data and point the SFTP chroot there, so heavy transfers never fill the root filesystem.
Machines for file exchange and bulk uploads
| Model | Processor | Cores | Memory | Drives | Port | Per month |
|---|---|---|---|---|---|---|
| ESSENTIAL-1 | Intel Xeon-E 2386G | 6 | 32 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $38.40 |
| BUSINESS-2 2024 | AMD EPYC 4344P | 8 | 64 GB | 2x 960 GB SSD NVMe | 3 Gbps unmetered | $109.80 |
| STORAGE-1 | AMD Ryzen 7 Pro 3700 | 8 | 32 GB | 2x 480 GB SSD SATA + 4x 14 TB HDD SAS | 1 Gbps unmetered | $109.80 |
| STORAGE-2 2024 | AMD EPYC 4344P | 8 | 32 GB | 2x 960 GB SSD NVMe + 2x 22 TB HDD SAS | 3 Gbps unmetered | $187.80 |
Related pages
Create SSH keys
Generate an Ed25519 key pair on Windows, macOS or Linux, add it to your account before ordering, and manage keys on a running server.
Read moreCopy data between servers with rsync
Move or mirror data from one machine to another over SSH with rsync, keep permissions intact, resume big copies and do a final short sync.
Read moreUnmetered bandwidth explained
What unmetered means, how much a 1 Gbps port can move in a month and how traffic allowances work in Asia-Pacific.
Read moreQuestions and answers
Is SFTP the same as FTPS?
No. SFTP is a file transfer protocol that runs inside SSH on port 22. FTPS is the old FTP protocol wrapped in TLS and needs extra ports.
Can I use FileZilla or WinSCP with my server?
Yes. Choose SFTP as the protocol, port 22, and either load your private key or use the account password.
How do I let someone upload without giving them a shell?
Create an account in a group with a Match block that sets ChrootDirectory and ForceCommand internal-sftp. The user sees one folder and cannot run commands.
Why does my chrooted SFTP login fail?
The chroot directory and every folder above it must be owned by root and not writable by group or others. Give the user a writable subfolder instead.
How do I resume an interrupted upload?
Use reput inside sftp to continue a partial file, or rsync with --partial for large folders.