LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-26-2020, 09:52 AM   #1
dhollingsbee
LQ Newbie
 
Registered: Mar 2020
Posts: 1

Rep: Reputation: Disabled
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

Last edited by dhollingsbee; 03-26-2020 at 10:35 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Purpose of a bastion server sniper8752 Linux - Security 1 02-09-2020 02:15 PM
proxyjump to reverse ssh connection on bastion? nicedreams Linux - Networking 1 12-06-2019 05:27 PM
LXer: SSH to remote hosts though a proxy or bastion with ProxyJump LXer Syndicated Linux News 0 12-06-2019 01:10 AM
X2go server that "passes on" clients to secondary server? Undermind Linux - Server 2 11-18-2010 11:09 PM
Computers behind router behind computer behind router remi Linux - Networking 1 05-05-2005 05:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration