Fixing FreeRDP certificate issues (Linux - RHEL7)

Sometimes connections from Red Hat Enterprise Linux (RHEL) to remote computers via RDP will fail if the remote computers have been physically rebuilt or had their software altered. This can be fixed by removing their old connection certificates from your home directory and accepting the remote machine’s new certificate. To do this:

  1. Open a terminal by pressing the Windows/Meta key, typing ‘terminal’ in the search box, and selecting the Terminal application from the resulting list.
  2. Run this command in the terminal window: sed -i '/^hostname/d' ~/.freerdp/known_hosts

This will find the string hostname inside the file which contains the known remote desktop hosts and delete its identity, allowing it to be recreated when connecting to it again.

Alternatively, you could run ‘gedit ~/.freerdp/known_hosts’, and remove the entire line which contains the hostname of the computer you are trying to connect to. In this case, it is ‘remote.mtu.edu’, so we will remove the line present in this file which starts with that hostname:Gedit Screenshot

You can now reconnect to the computer.

For more information on how to remotely connect to Windows computers, refer to our support article.

Was this helpful?
100% helpful - 1 review

Details

Article ID: 96506
Created
Fri 1/24/20 2:58 PM
Modified
Tue 3/15/22 9:45 AM