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 [2020/06/04 07:14] – [Tunnel] jansengeneric:rdp_mac [2023/09/08 12:45] (current) venemans
Line 3: Line 3:
  
 ===== Tunnel (from commandline) ===== ===== 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. This example logs in to ''ssh.strw.leidenuniv.nl'' and sets up the tunnel to host ''texel'' (the terminal server of the Sterrewacht): +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.  
-  ssh -L 3389:texel:3389 username@ssh.strw.leidenuniv.nl + 
-Now, you probbaly don't want to remeember 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): +==== Sterrewacht example ==== 
-  alias texel='ssh -L 3389:texel:3389 username@ssh.strw.leidenuniv.nl'+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:remote:3389 username@ssh.strw.leidenuniv.nl 
 + 
 +==== LION example ==== 
 +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'': 
 +  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): 
 +  alias remote='ssh -L 3389:remote:3389 username@ssh.strw.leidenuniv.nl'
  
 Some additional notes: Some additional notes:
Line 12: Line 21:
   * The Windows machine to log in to can just as well be your own Windows desktop, if you have one   * The Windows machine to log in to can just as well be your own Windows desktop, if you have one
   * The ''username@'' part can be omitted if you have the same username locally on your Mac and on the ssh server.   * The ''username@'' part can be omitted if you have the same username locally on your Mac and on the ssh server.
 +  * To avoid typing your password each time you set up an ssh tunnel, you could create an [[:ssh#ssh_keys|ssh keypair]].
  
 ===== Tunnel (GUI) ===== ===== Tunnel (GUI) =====
Line 18: Line 28:
   * [[https://coretunnel.app|Core Tunnel]]   * [[https://coretunnel.app|Core Tunnel]]
 ===== Microsoft Remote Desktop client ===== ===== Microsoft Remote Desktop client =====
-Microsoft has a rdp client for Mac, available for free through the App store. Download and install it, and then start it up. It will look like this (after you click the PC + ):+Microsoft has a rdp client for Mac, available for free through the [[https://apps.apple.com/us/app/microsoft-remote-desktop/id1295203466?mt=12|App store]]. Download and install it, and then start it up. It will look like this (after you click the PC + ):
 {{ :generic:macrdp2.png?direct&400 |}} {{ :generic:macrdp2.png?direct&400 |}}
 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''. This will make the app connect to the local rdp port, which is forwarded through the tunnel to the remote machine.
-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). 
 Back in the first screen, it is time to start the connection. Click on the 'Friendly name' to start the connection. Back in the first screen, it is time to start the connection. Click on the 'Friendly name' to start the connection.
Line 35: Line 45:
 Now you should see the familiar Windows log in screen and you can go about your business. Now you should see the familiar Windows log in screen and you can go about your business.
  
 +To access the remote system more quickly, you can save your username and password for your connection. To do this, go to ''Preferences'' (under the ''Microsoft Remote Desktop'' menu at the top), select the tab ''User Accounts'' and press the ''+'' button:
 +{{ :generic:rdp_useraccounts.png?400 |}} 
 +Fill in your username and password, give it a ''Friendly name'' and press ''Add'':
 +{{ :generic:rdp_adduseraccount.png?400 |}}
 +In the connection profile, you can select the ''Friendly name'' account under the ''User account'':
 +{{ :generic:rdp_useraccount_profile.png?400 |}}
generic/rdp_mac.1591254856.txt.gz · Last modified: 2020/06/04 07:14 by jansen