LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   X2Go and ssh forced commands to reach machine behind bastion ssh server (https://www.linuxquestions.org/questions/linux-software-2/x2go-and-ssh-forced-commands-to-reach-machine-behind-bastion-ssh-server-4175672011/)

dhollingsbee 03-26-2020 09:52 AM

X2Go and ssh forced commands to reach machine behind bastion ssh server
 
I have x2go client installed on a machineA and x2goserver installed on a server (machineB). I have set up public private keys for the user account and using x2go client and am able to to successfully start a remote desktop on machineB from machineA using x2go. All that works fine.

What I would like to able to do is get an x2go remote desktop from machineA to machineC. MachineC can only be seen from machineB (not machineA). I added a forced command to the public key in authorized keys on machineB that reads 'Command="/usr/bin/ssh -XY machineC $SSH_ORIGINAL_COMMAND" rest-of-public key'. This works fine if you simply ssh from machineA - you get placed on machineC as intended.

Despite x2goserver also being installed on machineC, when I then try and connect with x2go from machineA to machineB i get an window entitled "Error" which reads "Connection Failed" then followed by what looks like the content of /etc/motd followed by termination.

Can anyone enlighten me as to what the Command="xxx" section should read so that it might allow the x2go session to be started on machineC not machineB ?

Many Thanks


All times are GMT -5. The time now is 01:25 AM.