ProxyJump through bastion
Single-hop jump through bastion host
ssh -J bastion.example.com user@internal-host
- tool
- ssh15 commands
More ssh commands
-
ssh -J user@bastion1,user@bastion2 user@targetChain multiple jump hosts in one command
-
ssh -L 5432:db.internal:5432 user@bastion -NForward localhost:5432 to db.internal:5432 via bastion
-
ssh -R 8080:localhost:3000 user@vps -NExpose local port 3000 as port 8080 on VPS
-
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