SSH (OpenSSH) 10 · ~/.ssh/config

Configure a jump host

Always reach a private server through the bastion.

Host internal
    HostName 10.0.0.5
    User deploy
    ProxyJump bastion

Host bastion
    HostName bastion.example.com
    User deploy

Official SSH (OpenSSH) 10 documentation

More ~/.ssh/config commands

All ~/.ssh/config commands · SSH (OpenSSH) 10 cheatsheet

Was this page helpful?