Dynamic SOCKS proxy ssh
Create a local SOCKS5 proxy tunnelled through VPS
ssh -D 1080 user@vps -N -f
more ssh
all 15 commands →
SSH multiplexing (ControlMaster)
ssh -o ControlMaster=auto -o ControlPath=~/.ssh/mux-%r@%h:%p -o ControlPersist=10m user@host
Run remote command
ssh user@host 'sudo systemctl status nginx'
Copy file via SCP
scp -r -P 2222 ./dist/ user@host:/var/www/app/
Agent forwarding
ssh -A user@bastion
Add key to agent
eval $(ssh-agent) && ssh-add ~/.ssh/id_ed25519