Both sides previous revisionPrevious revisionNext revision | Previous revision |
manuals:bachelorservers:linux [2020/02/19 09:20] – venemans | manuals:bachelorservers:linux [2020/03/17 09:42] (current) – intema |
---|
==== Connecting to a bach(elor) server from Linux ==== | ==== Connecting to a bach(elor) server from Linux ==== |
| |
The easiest way to connect to a bachelor server from Linux is to use ''x2goclient'' ([[https://wiki.x2go.org/doku.php/download:start|which can be downloaded here]]), which automatically uses an ssh tunnel to communicate the RDP protocol. First, open ''x2goclient''. | The easiest way to connect to a bachelor server from Linux is to use ''x2goclient'' ([[https://wiki.x2go.org/doku.php/download:start|which can be downloaded here]]), which automatically uses an ssh tunnel to communicate the RDP protocol. Note that this application is installed on most Sterrewacht Linux computers. First, open ''x2goclient''. |
| |
{{:manuals:bachelorservers:linux_x2go_newsession.png?50|}} Click on the ''New session'' icon to set up a new connection (see left image; click to enlarge). | {{:manuals:bachelorservers:linux_x2go_newsession.png?50|}} Click on the ''New session'' icon to set up a new connection (see left image; click to enlarge). |
Alternatively, one can use ''remmina'' ([[https://remmina.org/how-to-install-remmina/|Remmina Remote Desktop Client]]). | Alternatively, one can use ''remmina'' ([[https://remmina.org/how-to-install-remmina/|Remmina Remote Desktop Client]]). |
| |
First, in a shell / terminal we open an ssh connection to the bach server of choice, and add an option (''-L'') to allow the xrdp protocol communication to pass through ssh, e.g.: | {{:manuals:bachelorservers:linux_remmina_newprofile.png?50|}} Open the application and press ''New connection profile'' in the upper left corner (see left image; click to enlarge). |
<code> | |
ssh -L 12345:localhost:3389 jklaassen@bach1.strw.leidenuniv.nl | |
</code> | |
Accept the key (only asked when connecting to a new server) and enter your password. What happens is that the internet protocol (IP) port on which RDP communication takes place (3389) is connected from the bach server through ssh to IP port 12345 of your own computer (can effectively be any number >= 10000). Note that we don't need to include the ''-X'' option with ssh, as we do not require any X-windows communication. | |
| |
Open the application and press ''Create a new connection profile''. Give the profile a name and select ''RDP'' as protocol. Enter the server name and set a suitable custom resolution. Initialise the session by pressing ''Save and Connect'' and accept the certificate. | {{:manuals:bachelorservers:linux_remmina_protocol.png?50|}} Give the profile a name and select ''RDP'' as protocol. |
| |
| {{:manuals:bachelorservers:linux_remmina_server.png?50|}} Enter the server name and your username |
| |
| {{:manuals:bachelorservers:linux_remmina_resolution.png?50|}} Set a suitable custom resolution at ''Resolution''. |
| |
| {{:manuals:bachelorservers:linux_remmina_ssh.png?50|}} To allow the communication to go through an ssh tunnel, go to the ''SSH Tunnel'' tab. Press ''Enable SSH tunnel'' and enter your username. |
| |
| {{:manuals:bachelorservers:linux_remmina_save.png?50|}} Initialise the session by pressing ''Save and Connect'' and enter your password. |
| |
| ----- |
| |
| [[:manuals:bachelorservers|Back]] |