SSH & File Transfer
- Connect:
ssh user@host; port-p 2222 - Copy:
scp file user@host:/path/ - Sync (efficient):
rsync -avz --progress dir/ user@host:/path/ - Keys:
ssh-keygen -t ed25519; copyssh-copy-id user@host - Tunnel:
ssh -L 8080:localhost:80 user@host - Define
Hostaliases in~/.ssh/config