User Tools

Site Tools


generic:rdp_mac

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
generic:rdp_mac [2025/09/26 12:32] jansengeneric:rdp_mac [2025/10/07 12:33] (current) jansen
Line 7: Line 7:
 If you are connected through our institute VPN, you should be able to connect directly (so you can skip the tunnel setup). The same is true for our wired (not wireless!) laptop net. If you are connected through our institute VPN, you should be able to connect directly (so you can skip the tunnel setup). The same is true for our wired (not wireless!) laptop net.
  
-===== Tunnel (from commandline) ===== +===== Tunnel (commandline) ===== 
-another way to connectis through a secure tunnel using ssh. The tunnel connects a local ''port'' to a remote port on a specific machine. The port we want here is 3389which is the port of the remote desktop protocol+Otherwise, a secure tunnel has to be set up using ssh. The tunnel connects a local ''port'' to a remote port on a specific machine. Once the tunnel is set upa client program can comnnect to the local port, and the tunnel takes care of connecting that to the remote destination.
  
-==== Sterrewacht example ==== +The port we want here is 3389, which is the port of the remote desktop protocol. This example logs in to ''ssh3.physics.leidenuniv.nl'' and sets up the tunnel to remote Windows Desktop on machine called SERVER
-This example logs in to ''ssh.strw.leidenuniv.nl'' and sets up the tunnel to host ''remote'' (the terminal server of the Sterrewacht). Instead of ''remote'' you can fill the name of your windows desktop computer: +  ssh -L 3389:SERVER:3389 username@ssh3.physics.leidenuniv.nl
-  ssh -L 3389:remote:3389 username@ssh.strw.leidenuniv.nl +
- +
-==== LION example ==== +
-If you want to connect to LION desktop, for example ''QO52'', you have to connect to the LION SSH server ''ssh3.physics.leidenuniv.nl''+
-  ssh -L 3389:QO52:3389 username@ssh3.physics.leidenuniv.nl +
- +
-==== Notes ====+
 Now, you probably don't want to remember this and type it all the time, so an easy solution is to add an alias in your ''.profile'' (which contains the settings that are executed every time you open a new shell in a terminal): Now, you probably don't want to remember this and type it all the time, so an easy solution is to add an alias in your ''.profile'' (which contains the settings that are executed every time you open a new shell in a terminal):
-  alias remote='ssh -L 3389:remote:3389 username@ssh.strw.leidenuniv.nl'+  alias SERVER='ssh -L 3389:SERVER:3389 username@ssh3.physics.leidenuniv.nl'
  
 Some additional notes: Some additional notes:
-  * Users should use the appropriate ssh server for their own institute +  * Users should use the appropriate ssh server for their own institute  
-  * The Windows machine to log in to can just as well be your own Windows desktop, if you have one +    * LION: ssh3.physics.leidenuniv.nl  
-  * The ''username@'' part can be omitted if you have the same username locally on your Mac and on the ssh server. +    * STRW: ssh.strw.leidenuniv.nl 
-  * To avoid typing your password each time you set up an ssh tunnel, you could create an [[:ssh#ssh_keys|ssh keypair]]. +    * Lorentz: ssh.lorentz.leidenuniv.nl 
 +  * The machine to log in to  (''SERVER''can just as well be your own desktop, if you have one (and if it has been set up to run RDP) 
 +  * The ''SERVER'' could also be our Remote Desktop cluster ''%%rds.physics.leidenuniv.nl%%'' if you have access to that. 
 +  * The ''username@'' part can be omitted if you have the same username locally on your Linux and on the ssh server.
 ===== Tunnel (GUI) ===== ===== Tunnel (GUI) =====
 Another way to ease the setup of the ssh tunnel, is to use an additional application that manages these tunnels. Some choices are: Another way to ease the setup of the ssh tunnel, is to use an additional application that manages these tunnels. Some choices are:
generic/rdp_mac.1758889956.txt.gz · Last modified: by jansen