This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
wiki:development:x2goclient-cli-study [2011/01/07 09:50] dali |
wiki:development:x2goclient-cli-study [2011/11/17 21:20] sunweaver |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | x2goclient-cli was developed for [[http:// | + | ===== Studying X2Go Session Handshake ===== |
+ | |||
+ | The Perl script | ||
+ | |||
+ | However, the x2goclient-cli script is very good for studying the X2Go session handshake. It can be found in the [[http:// | ||
+ | |||
+ | ===== 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 [[: |
+ | |||
+ | If you need to use password authentication, | ||
<code perl> | <code perl> | ||
Line 36: | Line 44: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | The above code will work with both password authentication and SSH keys. |