User Tools

Site Tools


wiki:development:x2goclient-cli-study

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:development:x2goclient-cli-study [2011/01/07 09:51]
dali
wiki:development:x2goclient-cli-study [2014/04/28 13:07] (current)
sunweaver
Line 1: Line 1:
-====== x2goclient-cli ======+====== X2Go Client (Perl Script for Studying X2Go Session Handshake) ======
  
-x2goclient-cli was developed for [[http://www.mail-archive.com/x2go-dev@lists.berlios.de/msg00840.html|testing purposes]], but is still quite usable. There are some advantages over the graphical alternatives, e g easier to start multiple x2go sessions.+===== Studying X2Go Session Handshake ===== 
 + 
 +The Perl script x2goclient-cli was developed for [[http://www.mail-archive.com/x2go-dev@lists.berlios.de/msg00840.html|testing purposes]], but is still quite usable. There are some advantages over the graphical alternatives, e g easier to start multiple x2go sessions. If you are searching for an X2Go command-line client, please take a look at the [[:doc:usage:pyhoca-cli|PyHoca-CLI X2Go component]]. 
 + 
 +However, the x2goclient-cli script is very good for studying the X2Go session handshake. It can be found in the [[http://code.x2go.org/gitweb?p=x2goclient.git;a=tree;f=examples|''examples'' folder of x2goclient.git]]. 
 + 
 +===== Improving x2goclient-cli =====
  
 There are some issues with it, the biggest problem is that after a session has ended there are still ssh tunnels running between the client and the server. If you then try to connect to a different server it will likely fail with an error message about "the remote proxy closed the connection while negotiating ...", because the local TCP port is still in use on the client. There are some issues with it, the biggest problem is that after a session has ended there are still ssh tunnels running between the client and the server. If you then try to connect to a different server it will likely fail with an error message about "the remote proxy closed the connection while negotiating ...", because the local TCP port is still in use on the client.
  
-Add these lines after the last line in x2goclient-cli to mitigate the problem:+Using SSH keys to authenticate seems to avoid the problem, see [[:wiki:advanced:authentication:passwordless-ssh]].  
 + 
 +If you need to use password authentication, add these lines after the last line in x2goclient-cli to mitigate the problem:
  
 <code perl> <code perl>
Line 36: Line 44:
 } }
 </code> </code>
 +
 +The above code will work with both password authentication and SSH keys.
wiki/development/x2goclient-cli-study.1294393868.txt.gz · Last modified: 2013/03/08 13:31 (external edit)