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:51] dali |
wiki:development:x2goclient-cli-study [2011/11/15 11:31] sunweaver wiki:x2goclient-cli renamed to wiki:development:x2goclient-cli-study (Namespace cleanup) |
||
---|---|---|---|
Line 5: | Line 5: | ||
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 38: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | The above code will work with both password authentication and SSH keys. |