{"id":206,"date":"2023-06-12T11:05:09","date_gmt":"2023-06-12T15:05:09","guid":{"rendered":"https:\/\/wwwdev.teach.cs.toronto.edu\/?page_id=206"},"modified":"2023-06-12T11:36:36","modified_gmt":"2023-06-12T15:36:36","slug":"remote-labs-rdp-over-ssh","status":"publish","type":"page","link":"https:\/\/wwwdev.teach.cs.toronto.edu\/using-labs\/remote-labs-rdp-over-ssh\/","title":{"rendered":"Remote Labs: RDP over SSH"},"content":{"rendered":"\n

RDP (Remote Desktop Protocol), invented by Microsoft, makes a workstation-style desktop available to a remote system. By default it is not secure, so we require that it be tunnelled over SSH.<\/p>\n\n\n\n

You will need a remote desktop client on your computer. For Windows 10, you can use Remote Desktop Connection, which is included in Windows. On MacOS, get Microsoft Remote Desktop from the Apple store. For Linux or UNIX variants, you can use remmina<\/code> (with colour depth GFX RFX<\/code>) or rdesktop<\/code>, as supplied by your distribution.<\/p>\n\n\n\n

To start an RDP session, or connect to an existing one:<\/p>\n\n\n\n

    \n
  1. Open a terminal (on MacOS or Linux) or cmd<\/code> (on Windows 10 1809 or later), and type
    \u00a0\u00a0\u00a0\u00a0ssh<\/strong> myutorid<\/em>@rdp1.teach.cs.toronto.edu<\/strong> -L3388:localhost:3389<\/strong><\/code>
    Myutorid<\/em> is your Teaching Labs name, usually the same as your UTORid. rdp2.teach.cs.toronto.edu<\/strong><\/code> works too; use that if rdp1<\/strong><\/code> is overloaded or broken.<\/li>\n\n\n\n
  2. When prompted, log in using your Teaching Labs password.<\/li>\n\n\n\n
  3. Once logged in, leave the ssh<\/em> session running; don’t exit. It maintains a tunnel for your RDP client; if ssh<\/em> disconnects or exits, so will your RDP session. It’s OK to iconify the terminal window, just be sure to leave it running.<\/li>\n\n\n\n
  4. Start your remote desktop client and connect to localhost:3388<\/strong><\/code>. Log in using your Teaching Labs username and password.<\/li>\n<\/ol>\n\n\n\n

    You should now have a desktop session that looks more or less like a workstation in the labs. When you’re finished, log out in your usual way and your RDP client will exit; you can then terminate the ssh<\/em> session, or leave it running and use it again later. If RDP or ssh<\/em> exits when you didn’t want that (perhaps a network problem, perhaps your own computer rebooted), don’t worry; just reconnect, restarting the ssh<\/em> tunnel if necessary, and you will be reconnected to the same session, with everything as you left it.<\/p>\n\n\n\n

    If you have an older version of Windows that doesn’t include ssh<\/em>, or if you want to for some other reason, you can use putty<\/code> instead:<\/p>\n\n\n\n

      \n
    • In putty<\/em>‘s config screen, enter hostname rdp1.teach.cs.toronto.edu<\/strong><\/code>.<\/li>\n\n\n\n
    • Before pressing Open<\/code>, go to SSH > Auth > Tunnels<\/code> (at the lower left) and put 3338<\/strong><\/code> in the Source port<\/code> field and localhost:3389<\/strong><\/code> in Destination<\/code>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"

      RDP (Remote Desktop Protocol), invented by Microsoft, makes a workstation-style desktop available to a remote system. By default it is not secure, so we require that it be tunnelled over SSH. You will need a remote desktop client on your computer. For Windows 10, you can use Remote Desktop Connection, which is included in Windows. […]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":133,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"templates\/template-full-width.php","meta":[],"_links":{"self":[{"href":"https:\/\/wwwdev.teach.cs.toronto.edu\/wp-json\/wp\/v2\/pages\/206"}],"collection":[{"href":"https:\/\/wwwdev.teach.cs.toronto.edu\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wwwdev.teach.cs.toronto.edu\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wwwdev.teach.cs.toronto.edu\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/wwwdev.teach.cs.toronto.edu\/wp-json\/wp\/v2\/comments?post=206"}],"version-history":[{"count":3,"href":"https:\/\/wwwdev.teach.cs.toronto.edu\/wp-json\/wp\/v2\/pages\/206\/revisions"}],"predecessor-version":[{"id":239,"href":"https:\/\/wwwdev.teach.cs.toronto.edu\/wp-json\/wp\/v2\/pages\/206\/revisions\/239"}],"up":[{"embeddable":true,"href":"https:\/\/wwwdev.teach.cs.toronto.edu\/wp-json\/wp\/v2\/pages\/133"}],"wp:attachment":[{"href":"https:\/\/wwwdev.teach.cs.toronto.edu\/wp-json\/wp\/v2\/media?parent=206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}