SFTP transfers files through an encrypted SSH connection. You need an account permitted to use SFTP, the server address and its SSH port; an FTP-only account may not have that access.
Connect with a command-line client
On a computer with an OpenSSH SFTP client, run:
sftp username@server-addressReplace the account and address. If the server uses a custom port, use uppercase -P, for example:
sftp -P 2222 username@server-addressCheck the server’s host-key fingerprint against a trusted value from your provider before accepting a first connection. If an existing host key unexpectedly changes, investigate it instead of removing the warning blindly.
Authenticate with the approved password or SSH key. Some accounts allow SFTP without an interactive shell, so a successful normal SSH login is not a universal prerequisite.
Use the connection
At the sftp> prompt, use ls to list remote files, lcd to change the local directory, get to download and put to upload. Type bye to disconnect. Check the destination before uploading because an existing file can be overwritten.