Acabei usando alguns SSH ~/.ssh/config hacks para fazer isso acontecer:
Host hopper
User naftuli
ForwardAgent yes
Host overthere
User naftuli
ForwardAgent yes
ProxyCommand ssh -q hopper nc overthere 22
O que acontece é que, quando tento conectar-me a ssh overthere de sittinghere , ele se conecta a hopper e, em seguida, faz proxy da conexão SSH à porta 22 em overthere (ex .: SSH em overthere ) .
Isso tem alguns efeitos colaterais incríveis:
ssh -L 5900:localhost:5900 overthere "x11vnc -display :0 -localhost"
Tudo funciona muito bem e, até onde eu sei, o 5900 não é aberto em hopper , apenas encaminhado diretamente de overthere para sittinghere .
