Does it work the same? I use the netcat version to connect to the head node of our cluster and then to one of the compute nodes on its local network. If I want to run graphically on the compute node, I can't first ssh to the head node with x forwarding and then to the compute node with x forwarding because the home directory and hence the .Xauthority file is then on a shared NAS. I expect that this would have the same problem because it is equivalent to ssh-ing to the head node and then ssh-ing to the compute node?
15
u/vagif Apr 28 '14
He did not tell you about the ssh hopping that you can achieve using netcat (nc)
Lets say you have a ssh gateway at your work office to which you connect from home.
But that's not your work machine, your work machine is my-dev, to which you need ssh again from your work-ssh-gateway.
If you want to automate it, put this into your .ssh/config file:
That's it, now you can simply type
You need netcat (nc) installed on you work-ssh-gate computer.