Skip to content
Hosting2 min read

What is SFTP?

Short answer

SFTP (SSH File Transfer Protocol) transfers files inside an encrypted SSH connection, usually on port 22. It encrypts both your password and your files and uses the same account as SSH, so SSH has to be enabled on your account.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. Ways to log in
  2. Practical example from the command line
  3. SFTP, SCP or rsync?
  4. Common problems
  5. On ArabyHost

Despite the name, SFTP is not FTP with encryption bolted on. It’s a separate protocol that is part of SSH, while FTPS is ordinary FTP over TLS. So SFTP needs no separate FTP accounts and no extra data ports: everything travels over one encrypted connection.

Ways to log in

Method How it works Note
Password The SSH user’s own password Simple, but exposed to guessing
SSH key Private key on your computer, public key on the server More secure and recommended

To create and install a key, follow the SSH keys guide.

Practical example from the command line

sftp -P 22 [email protected]
sftp> cd public_html
sftp> put index.html
sftp> get error_log
sftp> exit

put uploads a file from your computer and get downloads one from the server. Note that sftp takes the port as capital -P, whereas ssh uses lowercase -p.

Graphical options include FileZilla (choose the SFTP protocol), WinSCP, Cyberduck and VS Code extensions.

SFTP, SCP or rsync?

  • SFTP: an interactive session for browsing folders and moving files; supported by graphical clients.
  • SCP: a one-shot copy of a file or folder, e.g. scp -P 22 site.zip [email protected]:~/.
  • rsync: best for syncing and backups, since it sends only the differences and can resume after a dropped connection.

All three run over SSH, so if your account has SSH, you have all of them.

Common problems

  • Permission denied (publickey): the key isn’t installed on the server, or the client is offering a different key.
  • Connection refused: wrong port, or SSH isn’t enabled on the account.
  • I can only see my own folder: that’s normal on shared hosting; the account is isolated and can’t see other accounts’ files.

On ArabyHost

SFTP is available on AI/Developer plans, which include SSH jailed inside CageFS, so you only ever see your own account’s files. To get started, read the SSH access guide. Other plans don’t include SSH; upload with File Manager, a ZIP file, or a deploy from GitHub.

FAQ

What's the difference between SFTP and FTPS?

SFTP runs over SSH on a single port, usually 22. FTPS is ordinary FTP wrapped in TLS and uses a control port plus extra data ports. Both are encrypted, but SFTP is simpler through firewalls.

Do I log in to SFTP with my FTP account?

Usually not. SFTP uses the account's SSH user with its password or key, not the extra FTP accounts you create in the control panel.

What port does SFTP use?

The default is 22, but some hosts run SSH on a different port. Use the port given in your account details.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.