SFTP Command Generator — Copy a Ready-to-Run Command
Type your host, port, username and (optionally) a starting folder, and this tool builds a valid, shell-quoted sftp command — plus an equivalent ssh login. Everything happens right here in your browser; nothing you type is sent anywhere.
Connect Now — transfer files from your browser
Runs entirely in your browser — nothing you type is sent anywhere.
Get this command by email
Turn your server details into a runnable command
SFTP work in a terminal comes down to one line: point the sftp program at user@host, add the destination folder after a colon, and you're in. Getting that line exactly right — the flag for the port, the quoting around a username or path that contains spaces — is easy to fumble when you're mid-incident. This tool spits out the finished command for you: fill in the four fields, copy, and paste into your terminal. It also produces the matching ssh line for when you just need a shell on the server instead.
How the generator builds the command
The sftp line uses -P to set the port (that's uppercase, SFTP's convention), and the ssh line uses -p (lowercase, SSH's convention). Both flags are simply omitted when the port is the default 22, so the commands stay clean for the common case. Every field is shell-quoted: anything with spaces or special characters is safely wrapped so the command runs as a single, well-formed line in a POSIX shell. An initial folder becomes user@host:/path so you start inside that directory instead of your home folder.
Honest note: these commands run on YOUR machine
The generated commands are meant for your own terminal, on your own computer — copying them into FilePort Pro does nothing. That's the whole point: this is a generator for people who live in a shell. If you'd rather not touch a terminal at all, FilePort Pro's web SFTP client is the no-install alternative — connect, browse, upload and download straight from your browser, with your credentials never stored. On a plain-FTP server, online FTP client to connect without installing anything instead.
Frequently asked questions
What's the difference between sftp and ssh?
ssh opens a remote shell session on the server, while sftp starts an interactive file-transfer session. Both use the same secure SSH transport on the same port (22 by default) — sftp is simply the file-transfer side of SSH.
Do I need this command to use FilePort Pro?
No. FilePort Pro is a web client that connects to SFTP servers straight from your browser with nothing to install — these commands are only for when you prefer working in your own terminal.
Prefer no terminal?
Skip the shell entirely and transfer from the browser with FilePort Pro — a free, ad-supported FTP and SFTP client that needs no download. Your credentials are never stored, and every connection uses your browser's own session.
Connect Now — transfer files from your browser
Need to know whether a port is even reachable first? Try the FTP port checker. See every tool on the tools hub, and want to know how the app handles your data? Read the security page and the privacy policy.