Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

SSH

Key Generation

ssh-keygen -t <type>

eg. ssh-keygen -t ed25519

Port Forwarding

ssh -L 5000:localhost:5000 user@example.com

File Transfer

SCP

scp myfile.txt user@example.com:/home/user/myfile.txt

scp myfolder user@example.com:/home/user/myfolder

rsync

rsync -avz source/ user@remote:/destination/

rclone using SFTP

rclone config
# choose "sftp" as the storage type, then provide host, user, key/password, port, etc.
rclone sync /local/path mysftpremote:/remote/path