Remote Desktop: Difference between revisions

From UMIACS
Jump to navigation Jump to search
No edit summary
 
(27 intermediate revisions by 10 users not shown)
Line 8: Line 8:
*'''Prerequisites:'''
*'''Prerequisites:'''
**Connected to the [[VPN | UMIACS VPN]] or be within the UMIACS network border.
**Connected to the [[VPN | UMIACS VPN]] or be within the UMIACS network border.
**Be a member of the 'Remote Desktop Users' group on the remote machine.
**Be a member of the 'Remote Desktop Users' group on the remote machine. Please [[HelpDesk | contact staff]] if you do not have remote access to a machine you feel you should.
==Windows==
==Windows==
For connecting to Windows client over RDP, we recommend the native Windows 'Remote Desktop Connection' client.
For connecting to Windows client over RDP, we recommend the native Windows 'Remote Desktop Connection' client.  
 
#To start the RDC client, click the "Start'" or "Windows" button on the taskbar. In the menu, navigate to "All Programs," "Accessories," then select "Remote Desktop Connection". Alternatively, you can search for "Remote Desktop Connection" in the Start menu's search field.  
#To start the RDC client, click the "Start'" or "Windows" button on the taskbar. In the menu, navigate to "All Programs," "Accessories," then select "Remote Desktop Connection". Alternatively, you can search for "Remote Desktop Connection" in the Start menu's search field.  
#Once RDC client starts, type the name of the RDP/Windows host you are trying to access. The name should be the Fully Qualified Domain Name (FDQN), i.e. "somepc.'''pc.umiacs.umd.edu'''". At this point, click "Connect" to initiate the RDP session.  
#Once RDC client starts, type the name of the RDP/Windows host you are trying to access. The name should be the Fully Qualified Domain Name (FDQN), e.g. <tt>desktop.'''ad.umiacs.umd.edu'''</tt> where <code>desktop</code> is replaced by the name of the desktop you are trying to connect to. At this point, click "Connect" to initiate the RDP session.  
#*[[File:RemoteDesktop-ConnectMenu.jpg]]
#*[[File:RemoteDesktop-ConnectPrompt.png]]
#After the connection is started, a warning message may alert you to an identity verification failure. For UMIACS machines, you can ignore this and proceed by selecting "Yes"
#Upon reaching the Windows Security prompt, enter your UMIACS credentials. Please note that the username must be in the format <tt>UMIACS\username</tt>, where <code>username</code> is replaced by your UMIACS username. The slash must also be a back slash and not a forward slash. If the username is either not correct or not the desired account, click on "More choices" and select "Use another account". Click "Ok" when you are done.
#*[[File:RemoteDesktop-SecurityWarning.jpg]]
#*[[File:RemoteDesktop-Credentials.png]]
#Upon reaching the Windows Security prompt, enter your PC credentials. If the username is either not correct or not the desired account, select "Use another account". Click "Ok" when you are done.  
#After the connection is started, a warning message may alert you to an identity verification failure. For UMIACS machines, you can ignore this and proceed by checking the box and selecting "Yes".
#*[[File:RemoteDesktop-CredentialsPrompt.jpg]]
#*[[File:RemoteDesktop-SecurityPrompt.png]]
#You should now be viewing the remote computer. To terminate the session, you should logout of Windows.  
#You should now be viewing the remote computer. '''To terminate the session, you should logout of Windows'''.
To switch between your current host and the remote host, click the minimize or "-" button on the top connection bar. With RDC, the clipboard can be transferred between the remote and current host while the RDC client is running and logged in.
 
 
Alternatively, you can use the Microsoft Remote Desktop application from the Windows Store, which is available for download [https://www.microsoft.com/en-us/p/microsoft-remote-desktop/9wzdncrfj3ps?activetab=pivot%3Aoverviewtab here.]


To switch between your current host and the remote host, click the minimize or "-" button on the top connection bar. With RDC, the clipboard can be transferred between the remote and current host while the RDC client is running and logged in.
#Open Microsoft Remote Desktop.
#Click "Add" in the top right corner.
#*[[File:Microsoft Remote Desktop Step 1.png]]
#Next, click "Desktop - Connect to a PC".
#*[[File:Microsoft Remote Desktop Step 2.png]]
#Type the name of the RDP/Windows host you are trying to access in '''PC Name'''. The name should be the Fully Qualified Domain Name (FDQN), e.g. "desktop.'''ad.umiacs.umd.edu'''". Once you have filled that out, click Save.
#*[[File:Microsoft Remote Desktop Step 3.png]]
#Now, you should be on a page where you will see the PC you have just added. '''Double-click the PC''' and enter your UMIACS credentials. Please note that the username must be in the format UMIACS\username (this must be a back slash and not a forward slash). Then, click Connect.
#*[[File:Microsoft Remote Desktop Step 4.png]]
#*[[File:Microsoft Remote Desktop Step 5.png]]
#If it asks to "Accept certificate and connect?", press Connect.


==OSX==
==macOS==
For connecting to Windows client over RDP, we recommend the 'Microsoft Remote Desktop' application.  Another, although less preferred options is the CoRD client.
For connecting to Windows client over RDP, we recommend the 'Microsoft Remote Desktop' [https://apps.apple.com/us/app/microsoft-remote-desktop-10/id1295203466?mt=12 application].  Another, although less preferred, options is the CoRD client.
#Open the 'Microsoft Remote Desktop Application' and select '+ New' to create a new device profile
#Open the 'Microsoft Remote Desktop Application' and select '+ New' to create a new device profile
#Fill in the 'Connection Name' and 'PC Name' fields with the name of the host remote host you wish to connect to. Then close the window.
#*[[File:first_ss_real_real.png  |400px]]
#*[[File:OSX_MRD_addClient.png  |300px]]
#Fill in the'PC Name' field with the name of the remote host you wish to connect to. If you wish to redirect resources from the remote machine to your local machine, please see the section titled 'Redirecting Resources on Mac' below. Then press the blue add button in the bottom right corner.
#You will now see the device listed in the 'My Desktops' section of the 'Microsoft Remote Desktop' Application. Double click it to start the connection.
#*[[File:fakePC_and_add.png  |300px]]
#*[[File:OSX_MRD.png | 300px]]
#You will now see the device listed below. Double click it to start the connection.
#*[[File:Location .png  |400px]]
#You will then be prompted for the username and password used to log into the remote host. After typing in both the username and password, press the blue continue button.
#*[[File:My_username_and_password.png  |400px]]
#If you see a screen appear that looks like the one pictured below, press the blue continue button. You should then be connected to the remote host.
#*[[File:certificate_thing.png |400px]]


==UNIX==
==UNIX==
===freerdp===
===freerdp===
If you are trying to access a Windows host via RDP on a RHEL6 or Ubuntu 12.04/14.04 machine, you should use the rdesktop client from the command line. This should be preinstalled, so there is no configuration that needs to happen.  
If you are trying to access a Windows host via RDP on an Ubuntu machine, you should use the rdesktop client from the command line. This should be preinstalled, so there is no configuration that needs to happen.  


To use rdesktop, open a shell prompt and type the following command, replacing any $REPLACEME with the requested value.
To use rdesktop, open a shell prompt and type the following command, replacing values as appropriate:


<pre> rdesktop -r clipboard:CLIPBOARD -g $GEOMETRY -d PC -u $USERNAME $HOSTNAME </pre>
<pre>rdesktop -r clipboard:CLIPBOARD -g <GEOMETRY> -d UMIACS -u <USERNAME> <HOSTNAME></pre>


Key:  
Key:  


* <b><tt>$GEOMETRY</tt></b>: Percent of remote host's screen to mirror on the client
* <b><tt><GEOMETRY></tt></b>: Percent of remote host's screen to mirror on the client
* <b><tt>$USERNAME</tt></b>: Your UMIACS username (Do not include domain name)
* <b><tt><USERNAME></tt></b>: Your UMIACS username (Do not include domain name)
* <b><tt>$HOSTNAME</tt></b>: Fully Qualified Domain Name (FDQN) of the desired remote host
* <b><tt><HOSTNAME></tt></b>: Fully Qualified Domain Name (FDQN) of the desired remote host


Once you have connected, you will be directed to a Windows login screen where you can complete the login process.
Once you have connected, you will be directed to a Windows login screen where you can complete the login process.


===xfreerdp===
===xfreerdp===
 
Xfreerdp is the replacement for rdesktop included with newer Linux hosts, starting with RHEL7 and Ubuntu 12.04/14.04. You should use the xfreerdp client from the command line. This is preinstalled on these newer hosts.  
Xfreerdp is the replacement for rdesktop included with newer Linux hosts, starting with RHEL7 and Ubuntu 12.04/14.04. Xfreerdp also has RHEL6. You should use the xfreerdp client from the command line. This is preinstalled on these newer hosts.  


The command for xfreerdp is a bit different than rdesktop. To connect via RDP to a remote host with xfreerdp, type the following command, replacing values as appropriate:  
The command for xfreerdp is a bit different than rdesktop. To connect via RDP to a remote host with xfreerdp, type the following command, replacing values as appropriate:  


<pre> xfreerdp -d PC -u $USERNAME --plugin cliprdr -g $GEOMETRY $HOSTNAME </pre>
<pre> xfreerdp -d UMIACS -u <USERNAME> --plugin cliprdr -g <GEOMETRY> <HOSTNAME></pre>


Similar to rdesktop, here is an explanation of the values above:
Similar to rdesktop, here is an explanation of the values above:


* <b><tt>$GEOMETRY</tt></b>: Percent of remote host's screen to mirror on the client
* <b><tt><GEOMETRY></tt></b>: Percent of remote host's screen to mirror on the client
* <b><tt>$USERNAME</tt></b>: Your UMIACS username (Do not include domain name)
* <b><tt><USERNAME></tt></b>: Your UMIACS username (Do not include domain name)
* <b><tt>$HOSTNAME</tt></b>: Fully Qualified Domain Name (FDQN) of the desired remote host
* <b><tt><HOSTNAME></tt></b>: Fully Qualified Domain Name (FDQN) of the desired remote host
 
As with any of these RDP solutions, closing xfreerdp (using the top bar or using CTRL+C) without logging out could cause considerable problems for other users of the workstation. If you are using a shared workstation, please be sure to logout after you are finished with the remote machine using the Start menu.
 
=Redirecting Resources on Windows=
 
*'''Resource redirection must be set up before connection is established.'''
==Audio Redirection==
*'''This allows the remote desktop to access the audio capture and playback devices on the user's desktop.'''
# Click the "Show Options" drop down menu
# Navigate to the "Local Resources" tab
# Click the "Settings" button in the Remote audio box
# Select preferred audio preferences
# Select "OK
# Select "Connect"
 
==Other Resource Redirection==
*'''This allows the remote desktop to access the drives, printers, and video capture devices on the user's desktop.'''
# Click the "Show Options" drop down menu
# Navigate to the "Local Resources" tab
# Click the "More" button in the Local devices and resources box
# Click the checkbox next to the resources you would like to redirect
# Select "OK"
# Select "Connect"
 
=Redirecting Resources on Mac=
*'''If you have already created the PC connection, right click over the PC connection you wish to add resource redirection to, then select 'Edit'.'''
 
==Folder/Drive Redirection==
*'''This allows the remote machine to access specified folders on your local machine.'''
# Located halfway down the screen, select the 'Folders' tab.
# Check the box titled 'Redirect folders,' if not checked already
# Either select the folder(s) already listed you wish to access from the remote machine by checking the box next to the desired folder, or select the '+' button, then import and select the folder(s) you wish to access.
# Press the blue 'Add' button in the bottom right corner, or if you wish to direct other resources as well, see 'Other Resource Redirection' below.
#*[[File:Folder.png  |300px]]


As with any of these RDP solutions, closing xfreerdp (using the top bar or using CTRL+C) without logging out could cause considerable problems for other users of the workstation. Please be sure to logout after you are finished with the remote machine using the Start menu.
==Other Resource Redirection==
*'''This will allow for camera, printer, and/or microphone access to be shared between machines.'''
# Located halfway down the screen, select the 'Devices and Audio' tab.
# Ensure the boxes next to the services you would like to redirect are checked.  For video, ensure that the 'Microphone' and 'Camera' boxes are checkmarked.  For printer access, ensure that the 'Printers' box is checkmarked. Please be mindful to keep 'Clipboard' checkmarked, as that is what allows you to copy and paste between your local machine and the remote machine.
# Press the blue 'Add' button in the bottom right corner.
#*[[File:Redirect.png |300px]]

Latest revision as of 16:32, 16 February 2024

Introduction

Remote Desktop allows you to connect to another computer from a network that is compatible. Currently, at UMIACS, this feature is only supported for Windows hosts using the Remote Desktop Protocol (RDP). If you need to remotely connect to a UNIX host, please see SecureShell. With RDP, you can control your Windows desktop environment through a graphical user interface. Mouse and keyboard movements are transferred over a network to a Windows host running an RDP server, which sends screen refreshes back.

To access an RDP enabled machine, you must be on the UMIACS physical network or VPN. You must also be authorized to access and remotely control the host you are requesting. If a remote session is active, it is not possible for another user to log onto the console in-person. Attempting to use RDP when a computer is in use by another user could force the existing user to logoff and lose their work. You should always quit RDP by logging off of the remote computer. Simply quitting the RDP client can cause you to stay logged in and prevent other users from accessing the remote host, even at the physical console.

How to Connect

  • Prerequisites:
    • Connected to the UMIACS VPN or be within the UMIACS network border.
    • Be a member of the 'Remote Desktop Users' group on the remote machine. Please contact staff if you do not have remote access to a machine you feel you should.

Windows

For connecting to Windows client over RDP, we recommend the native Windows 'Remote Desktop Connection' client.

  1. To start the RDC client, click the "Start'" or "Windows" button on the taskbar. In the menu, navigate to "All Programs," "Accessories," then select "Remote Desktop Connection". Alternatively, you can search for "Remote Desktop Connection" in the Start menu's search field.
  2. Once RDC client starts, type the name of the RDP/Windows host you are trying to access. The name should be the Fully Qualified Domain Name (FDQN), e.g. desktop.ad.umiacs.umd.edu where desktop is replaced by the name of the desktop you are trying to connect to. At this point, click "Connect" to initiate the RDP session.
    • RemoteDesktop-ConnectPrompt.png
  3. Upon reaching the Windows Security prompt, enter your UMIACS credentials. Please note that the username must be in the format UMIACS\username, where username is replaced by your UMIACS username. The slash must also be a back slash and not a forward slash. If the username is either not correct or not the desired account, click on "More choices" and select "Use another account". Click "Ok" when you are done.
    • RemoteDesktop-Credentials.png
  4. After the connection is started, a warning message may alert you to an identity verification failure. For UMIACS machines, you can ignore this and proceed by checking the box and selecting "Yes".
    • RemoteDesktop-SecurityPrompt.png
  5. You should now be viewing the remote computer. To terminate the session, you should logout of Windows.

To switch between your current host and the remote host, click the minimize or "-" button on the top connection bar. With RDC, the clipboard can be transferred between the remote and current host while the RDC client is running and logged in.


Alternatively, you can use the Microsoft Remote Desktop application from the Windows Store, which is available for download here.

  1. Open Microsoft Remote Desktop.
  2. Click "Add" in the top right corner.
    • Microsoft Remote Desktop Step 1.png
  3. Next, click "Desktop - Connect to a PC".
    • Microsoft Remote Desktop Step 2.png
  4. Type the name of the RDP/Windows host you are trying to access in PC Name. The name should be the Fully Qualified Domain Name (FDQN), e.g. "desktop.ad.umiacs.umd.edu". Once you have filled that out, click Save.
    • Microsoft Remote Desktop Step 3.png
  5. Now, you should be on a page where you will see the PC you have just added. Double-click the PC and enter your UMIACS credentials. Please note that the username must be in the format UMIACS\username (this must be a back slash and not a forward slash). Then, click Connect.
    • Microsoft Remote Desktop Step 4.png
    • Microsoft Remote Desktop Step 5.png
  6. If it asks to "Accept certificate and connect?", press Connect.

macOS

For connecting to Windows client over RDP, we recommend the 'Microsoft Remote Desktop' application. Another, although less preferred, options is the CoRD client.

  1. Open the 'Microsoft Remote Desktop Application' and select '+ New' to create a new device profile
    • First ss real real.png
  2. Fill in the'PC Name' field with the name of the remote host you wish to connect to. If you wish to redirect resources from the remote machine to your local machine, please see the section titled 'Redirecting Resources on Mac' below. Then press the blue add button in the bottom right corner.
    • FakePC and add.png
  3. You will now see the device listed below. Double click it to start the connection.
    • Location .png
  4. You will then be prompted for the username and password used to log into the remote host. After typing in both the username and password, press the blue continue button.
    • My username and password.png
  5. If you see a screen appear that looks like the one pictured below, press the blue continue button. You should then be connected to the remote host.
    • Certificate thing.png

UNIX

freerdp

If you are trying to access a Windows host via RDP on an Ubuntu machine, you should use the rdesktop client from the command line. This should be preinstalled, so there is no configuration that needs to happen.

To use rdesktop, open a shell prompt and type the following command, replacing values as appropriate:

rdesktop -r clipboard:CLIPBOARD -g <GEOMETRY> -d UMIACS -u <USERNAME> <HOSTNAME>

Key:

  • <GEOMETRY>: Percent of remote host's screen to mirror on the client
  • <USERNAME>: Your UMIACS username (Do not include domain name)
  • <HOSTNAME>: Fully Qualified Domain Name (FDQN) of the desired remote host

Once you have connected, you will be directed to a Windows login screen where you can complete the login process.

xfreerdp

Xfreerdp is the replacement for rdesktop included with newer Linux hosts, starting with RHEL7 and Ubuntu 12.04/14.04. You should use the xfreerdp client from the command line. This is preinstalled on these newer hosts.

The command for xfreerdp is a bit different than rdesktop. To connect via RDP to a remote host with xfreerdp, type the following command, replacing values as appropriate:

 xfreerdp -d UMIACS -u <USERNAME> --plugin cliprdr -g <GEOMETRY> <HOSTNAME>

Similar to rdesktop, here is an explanation of the values above:

  • <GEOMETRY>: Percent of remote host's screen to mirror on the client
  • <USERNAME>: Your UMIACS username (Do not include domain name)
  • <HOSTNAME>: Fully Qualified Domain Name (FDQN) of the desired remote host

As with any of these RDP solutions, closing xfreerdp (using the top bar or using CTRL+C) without logging out could cause considerable problems for other users of the workstation. If you are using a shared workstation, please be sure to logout after you are finished with the remote machine using the Start menu.

Redirecting Resources on Windows

  • Resource redirection must be set up before connection is established.

Audio Redirection

  • This allows the remote desktop to access the audio capture and playback devices on the user's desktop.
  1. Click the "Show Options" drop down menu
  2. Navigate to the "Local Resources" tab
  3. Click the "Settings" button in the Remote audio box
  4. Select preferred audio preferences
  5. Select "OK
  6. Select "Connect"

Other Resource Redirection

  • This allows the remote desktop to access the drives, printers, and video capture devices on the user's desktop.
  1. Click the "Show Options" drop down menu
  2. Navigate to the "Local Resources" tab
  3. Click the "More" button in the Local devices and resources box
  4. Click the checkbox next to the resources you would like to redirect
  5. Select "OK"
  6. Select "Connect"

Redirecting Resources on Mac

  • If you have already created the PC connection, right click over the PC connection you wish to add resource redirection to, then select 'Edit'.

Folder/Drive Redirection

  • This allows the remote machine to access specified folders on your local machine.
  1. Located halfway down the screen, select the 'Folders' tab.
  2. Check the box titled 'Redirect folders,' if not checked already
  3. Either select the folder(s) already listed you wish to access from the remote machine by checking the box next to the desired folder, or select the '+' button, then import and select the folder(s) you wish to access.
  4. Press the blue 'Add' button in the bottom right corner, or if you wish to direct other resources as well, see 'Other Resource Redirection' below.
    • Folder.png

Other Resource Redirection

  • This will allow for camera, printer, and/or microphone access to be shared between machines.
  1. Located halfway down the screen, select the 'Devices and Audio' tab.
  2. Ensure the boxes next to the services you would like to redirect are checked. For video, ensure that the 'Microphone' and 'Camera' boxes are checkmarked. For printer access, ensure that the 'Printers' box is checkmarked. Please be mindful to keep 'Clipboard' checkmarked, as that is what allows you to copy and paste between your local machine and the remote machine.
  3. Press the blue 'Add' button in the bottom right corner.
    • Redirect.png