Linux: Tunnel through two hosts

PHOTO EMBED

Thu Jun 26 2025 19:41:55 GMT+0000 (Coordinated Universal Time)

Saved by @marcopinero #bash

ssh -L <localport>:localhost:<host2port> -J user1@host1 user2@host2
content_copyCOPY