in ssh with
ssh -CX user@remoteA
I can launch a xterm and see in my local desktop.
if I have a linux server (remoteA) without X server and a remote linux desktop (remoteB) with a X server.
If I connect with ssh to remoteB over remoteA
local -ssh-> remoteA -ssh-> remoteB
how I can launch a xterm in remoteB and see in local ?
You need to setup an end-to-end SSH connection, i.e. from
local
toremoteB
, instead of chaining viaremoteA
. If you can't get toremoteB
directly, either setup a port forward viaremoteA
, or use aProxyCommand
.To use a port forward:
To use a
ProxyCommand
: