Secure FTP SFTP and Secure Copy SCP
SFTP
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
SCP
Secure copy files to or from remote server (with custom port -P <port>
)
For destination, specify the remote server, then remote path/file separated by a colon
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
SCP Examples
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
Last updated