ssh.txt (544B)
1 =============================================================================== 2 SSH 3 =============================================================================== 4 5 SSH Port Forwarding: 6 7 ssh -L <local_port>:localhost:<remote_port> user@remote_host 8 9 ssh -L 3000:localhost:3000 user@remotehost 10 11 12 rsync via SSH: 13 14 Local -> Remote: 15 rsync -avz -e ssh /local/path/ user@remote_host:/remote/path/ 16 17 Remote -> Local: 18 rsync -avz -e ssh user@remote_host:/remote/path/ /local/path/ 19 20 21 Generate a new ssh key: 22 ssh-keygen -t ed25519 -C "your_email@example.com"