Compare

ssh vs scp

The difference between connecting to a remote shell and copying files over SSH.

SSH is the remote login protocol and command channel. SCP uses SSH transport to copy files. They are related, but they solve different tasks.

Use SSH When

You want to log into a remote machine or run remote commands.

You need an interactive shell or remote execution context.

Use SCP When

You want to copy files between systems over SSH.

You need a quick ad hoc transfer without opening an interactive session.

Rule of Thumb

SSH connects. SCP copies.

Want the short version? Browse the compact sheet views and save the commands you use most into a Cheatbook.