ssh
Command line
Jump box
ssh -o "StrictHostKeyChecking no" -J [email protected] [email protected]
ssh config
Dynamic host
host *-kube-node-??
HostName %h.mydomain.com
StrictHostKeyChecking no
LogLevel quiet
User root
IdentityFile myKey.pem
TCPKeepAlive yes
ServerAliveInterval 20
Usage
ssh my-area-kube-node-00
jump box
Static jumphost list means, that you know the jumphost or jumphosts you need, to reach a host. Therefore you can create a static jumphost 'routing' in ~/.ssh/config
file. The advantage in comparison to the dynamic jumphost option is, that you don't have to provide the .ssh config on jumphosts between your machine and all the other jumphosts between you and the final host you want to jump to.1
#### First jumphost. Directly reachable
Host betajump
HostName jumphost1.example.org
#### Host to jump to via jumphost1.example.org
Host behindbeta
HostName behindbeta.example.org
ProxyJump betajump
Usage
ssh behindbeta
Port forwarding
Local forwarding
ssh -L [localport]:[targetHost]:[targetPort] <jumpbox>
ssh -L 8080:target.example.com:8080 jumpbox.example.com
Last updated