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
Next revision
Previous revision
generic:rdp_mac [2025/09/18 11:10] jansengeneric:rdp_mac [2025/10/07 12:33] (current) jansen
Line 3: Line 3:
  
 Alternatively, for PHYSICS, you can make use of the RDP gateway to access your Windows desktop. Please visit [[general:macos_desktop_gateway|this]] page for instructions. Alternatively, for PHYSICS, you can make use of the RDP gateway to access your Windows desktop. Please visit [[general:macos_desktop_gateway|this]] page for instructions.
-===== Tunnel (from commandline) ===== 
-First, a secure tunnel has to be set up using ssh. The tunnel connects a local ''port'' to a remote port on a specific machine. The port we want here is 3389, which is the port of the remote desktop protocol.  
  
-==== Sterrewacht example ==== +===== VPN ===== 
-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: +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.
-  ssh -L 3389:remote:3389 username@ssh.strw.leidenuniv.nl+
  
-==== LION example ==== +===== Tunnel (commandline) ===== 
-If you want to connect to a LION desktop, for example ''QO52'', you have to connect to the LION SSH server ''ssh3.physics.leidenuniv.nl'': +Otherwise, a secure tunnel has to be set up using ssh. The tunnel connects 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.
-  ssh -L 3389:QO52:3389 username@ssh3.physics.leidenuniv.nl+
  
-==== Notes ====+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 a remote Windows Desktop on a machine called SERVER: 
 +  ssh -L 3389:SERVER:3389 username@ssh3.physics.leidenuniv.nl
 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:
Line 33: Line 32:
 After you clicked the "+" you can add a new connection. This screen will pop up: After you clicked the "+" you can add a new connection. This screen will pop up:
 {{ :generic:macrdp1.png?direct&200 |}} {{ :generic:macrdp1.png?direct&200 |}}
-Give the connection a name that makes sense to you to remember. As pc name, fill in ''localhost''. This will make the app connect to the local rdp port, which is forwarded through the tunnel to the remote machine.+Give the connection a name that makes sense to you to remember.  
 + 
 +As pc name, fill in ''localhost'' if you are using the 'tunnel' setup. This will make the app connect to the local rdp port, which is forwarded through the tunnel to the remote machine. If you are not using a tunnel (local connection or VPN), fill in the full hostname and domain of the machine to which you are trying to connect. 
 You can also fill in the username if you want (or do that on the login screen). Make sure however, to add the domain, so in this case: ''STERREWACHT\username'' or ''PHYSICS\username''. You can also fill in the username if you want (or do that on the login screen). Make sure however, to add the domain, so in this case: ''STERREWACHT\username'' or ''PHYSICS\username''.
 Close this window when done (use the Add button).  Close this window when done (use the Add button). 
generic/rdp_mac.1758193835.txt.gz · Last modified: by jansen