3 ms·
There's a machine I should into but I don't know if I can x inner ssh because it isn't publicly available. I ssh into another machine and then ssh from there t
by mcny 8y ago
There's a machine I should into but I don't know if I can x inner ssh because it isn't publicly available.
I ssh into another machine and then ssh from there to that machine. I don't even know how to search this question. The machine in the middle doesn't have a display. X over ssh is difficult.
- 0x0 8y agoTry setting up a $HOME/.ssh/config entry for the inner machine and specify a ProxyJump command referencing the outer machine? It should end up relaying a direct ssh connection across the outer ssh session's TCP port forwarding mechanism (I think)
- pjc50 8y agoIt can work if X forwarding is enabled on both hops. However, X11 forwarding may be disabled in the sshd_config on the remote system. It doesn't require a physical display. If it's working then it should set the $DISPLAY environment variable inside the ssh session.
- dfox 8y agoAnother thing that is required for X11 forwarding is installed xauth on the server side (that means even the middle host(s)), nothing else X11 related is required.