sftp

SSH File Transfer Protocol, a network protocol used for secure file transfer over secure shell.

Login to server

Login to user home directory of the server.

$ sftp <user_name>@<server_ip>

Login to specific directory of the server.

$ sftp <user_name>@<server_ip>:<remote_dir>

File transfer

Download file from server.

$ get <server_path> <local_path>

Upload local file to server.

$ get <local_path> <server_path>

Command

Command for local host.

$ !<command>

Command for server.

$ <command>

Exit server

Exit from server.

$ bye