<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi, <br>
</p>
<p>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.</p>
<p>I did the following:</p>
<p>On x2go Server:</p>
<pre class="code">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
</pre>
<p>SSH is on #mysshport.</p>
<p>On x2gohtmlclient Server:</p>
<pre class="code">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
</pre>
<pre class="code">edit /usr/share/x2gohtmlclient/demo/index.html:
</pre>
<font face="monospace">sshport=22\n\ </font>to<font
face="monospace"> sshport=#mysshport\n\<br>
</font>
<p><font face="monospace">sshproxyport=22\n\ </font>to<font
face="monospace"> sshproxyport=#mysshport\n\</font></p>
<p>finally:<br>
</p>
<p><font face="monospace">sudo service restart nginx</font></p>
<p>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.<br>
</p>
<p>/var/log/nginx/x2gohtmlclient_error.log shows </p>
<p><font face="monospace">[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: <a class="moz-txt-link-rfc2396E" href="https://localhost/">"https://localhost/"</a></font><br>
</p>
<p>I would have expected that the empty "server: " would show my
x2go server as entered in the webinterface. Did I miss something?
<br>
</p>
<p><br>
</p>
<p>Best, <br>
</p>
<p>Jooris Mettler<br>
</p>
<p></p>
<p><br>
</p>
<font face="monospace"></font><br>
<p></p>
<p></p>
</body>
</html>