Hi,
im currently trying to figure out the x2gohtmlclient. I have a server
with x2go installed and want to run the webserver on a different
machine. From my understanding, the x2gohtmlclient-Host contacts the
x2go server using ssh.
I did the following:
On x2go Server:
sudo add-apt-repository ppa:x2go/nightly
sudo add-apt-repository ppa:x2go/ppa
sudo apt update
sudo apt install x2goserver x2goserver-xsession x2goserver-x2gokdrive
SSH is on #mysshport.
On x2gohtmlclient Server:
sudo add-apt-repository ppa:x2go/nightly
sudo add-apt-repository ppa:x2go/ppa
sudo apt update
sudo apt install nginx fcgiwrap x2gohtmlclient
sudo rm /etc/nginx/sites-enabled/default
sudo ln -s /etc/nginx/sites-available/x2gohtmlclient-demo.conf /etc/nginx/sites-enabled/x2gohtmlclient-demo.conf
edit /usr/share/x2gohtmlclient/demo/index.html:
sshport=22\n\ tosshport=#mysshport\n\
sshproxyport=22\n\ tosshproxyport=#mysshport\n\
finally:
sudo service restart nginx
I can access the Webinterface on localhost, but when I try to connect I
only get "failed to connect to server, please check your login data".
Connection via SSH works. x2go also server works.
/var/log/nginx/x2gohtmlclient_error.log shows
[error] 16702#16702: *1 FastCGI sent in stderr: "cgi-bin/x2gorpc.cgi
line 259" while reading response header from upstream, client:
127.0.0.1, server: , request: "POST /assets/rpc/x2gorpc.cgi HTTP/1.1",
upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:", host: "localhost",
referrer: "https://localhost/"
I would have expected that the empty "server: " would show my x2go
server as entered in the webinterface. Did I miss something?
Best,
Jooris Mettler