Connect to remote server using sftp (add -oPort=<port> if port is required)
A subset of standard unix commands are available while connected.
Upload a file
Download a file
Quit sftp
Secure copy files to or from remote server (with custom port -P <port>)
scp <source> <destination>
For destination, specify the remote server, then remote path/file separated by a colon
<user>@<host>:<path/file>
Specify local file using local system path. Use a single dot to indicate current directory. Use lowercase r for recursive copy.
SCP Current directory / files
Copy all files in the current directory to a remote directory
Recursively copy files and directories from current directory to remote directory
Quote source / destination paths when using wildcards for Fish Shell
Copy a remote file on server user@host, located at path/file, to the local path
Copy a local file at path/file to another remote server
Recursively copy the files and folders from local dir to the remote server home directory