Home
PHP
Tech Tube
MySQL
Linux
CSS&HTML
JavaScript

SSH and SCP examples

This page will store some useful and common SSH and SCP examples: SSH using specific port:
ssh user@host -P your-port
SSH using specific certificate:
ssh user@host -i ~/.ssh/your-key.pem
SCP download directory:
scp -r user@host:/directory/for/download /local/directory
Upload file to docker container:
docker cp /path/on/current/machine container_name:/path/in/the/container