Linux Command Cheat Sheet/Copy files over SSH

Transfer files between hosts securely.

Section: Networking and Remote Access

Copy files over SSH

bash
bash
scp app.tar.gz user@server:/tmp/
Explanation

Simple and widely available for secure file copy.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Networking and Remote Access
Copy files recursively
Copy files or directories.
OpenIn sheetbash1 tag match
Print working directory
Show the current absolute path.
Create file or update timestamp
Create an empty file if it does not exist.
Print file contents
Concatenate and print files to standard output.
Search text with grep
Print lines matching a pattern.
List permissions
Show permissions and ownership on files.