Remote port forward
Expose local port 3000 as port 8080 on VPS
ssh -R 8080:localhost:3000 user@vps -N
- tool
- ssh15 commands
More ssh commands
-
ssh -D 1080 user@vps -N -fCreate a local SOCKS5 proxy tunnelled through VPS
-
ssh -o ControlMaster=auto -o ControlPath=~/.ssh/mux-%r@%h:%p -o ControlPersist=10m user@hostReuse existing connection for subsequent SSH commands
-
ssh user@host 'sudo systemctl status nginx'Execute a command over SSH without interactive shell
-
scp -r -P 2222 ./dist/ user@host:/var/www/app/Recursive copy on non-standard port
-
ssh -A user@bastionForward local SSH agent to the remote host (use with caution)