SSH To Remote Host Through Bastion In One Command
April 27 2024

Neat command I found to SSH into a remote host through a bastion in one command. This is possible using ProxyJump or the -J flag.

ssh -J <BASTION_IP> <REMOTE_IP>

If the hosts differ between users and ports, you can specify them like this.

ssh -J user@<BASTION_IP:PORT> user@<REMOTE_IP:PORT>