Set Up SSH Keys to access Remote Desktop VM over SSH#

To connect to your GEOAnalytics Canada Remote Desktop over SSH, you will need to generate an SSH key pair on your local machine and upload the public key to your remote desktop. To do this, follow these steps:

  1. Open up a terminal or PowerShell

  2. run the command

    sshkey-gen -t rsa
  3. Then configure your key name saved under the “.ssh/” directory

  4. Copy the contents of the .pub version

  5. Connect to the Remote Desktop

  6. In a terminal on the remote desktop, run

    nano .ssh/authorized_keys
  7. Paste the .pub contents at the end of the opened file on a new line

  8. Save the file in place and exit

References:#

[1] - https://linuxhint.com/generate-ssh-key-ubuntu/
[2] - https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_keymanagement
[ ]: