{"id":7975,"date":"2020-08-31T14:42:26","date_gmt":"2020-08-31T18:42:26","guid":{"rendered":"https:\/\/carleton.ca\/scs\/?page_id=7975"},"modified":"2022-12-21T13:54:20","modified_gmt":"2022-12-21T18:54:20","slug":"secure-shell-ssh","status":"publish","type":"page","link":"https:\/\/carleton.ca\/scs\/tech-support\/secure-shell-ssh\/","title":{"rendered":"Secure Shell (ssh)"},"content":{"rendered":"<p>Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. At the School of Computer Science, we use ssh for remote connection logins to our computers.<\/p>\n<p><a href=\"#login\">Logging in to Linux using ssh<\/a><br \/>\n<a href=\"#ssh-key\">ssh-key logins<\/a><br \/>\n<a href=\"#common-ssh-problems\">Common ssh questions<\/a><\/p>\n<h2><a id=\"login\"><\/a>Logging in to Linux using SSH<\/h2>\n<p>There are two ways to login to a remote Linux server using SSH:<\/p>\n<ol>\n<li>terminal server (text only)<\/li>\n<li>remote desktop (graphical\/X11)<br \/>\n<em><strong>Not all servers support X11-sessions<\/strong>. Check the servers&#8217; capabilities for remote desktop connections.<\/em><\/li>\n<\/ol>\n<p><span style=\"color: #ff0000; font-weight: bold;\">IMPORTANT<\/span>: Carleton is behind a firewall. If you are outside of Carleton, you will need to VPN to Carleton first before you can access the SCS server resources. Refer to the <a href=\"https:\/\/carleton.ca\/its\/help-centre\/remote-access\/\" target=\"_blank\" rel=\"noopener noreferrer\">Remote Access (VPN)<\/a> information.<\/p>\n<h3>Login using ssh to Linux using the terminal<\/h3>\n<p>If your computer is running Windows, you can use the free <a href=\"https:\/\/www.putty.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">putty<\/a> utility as your ssh client.<\/p>\n<ul>\n<li><a href=\"https:\/\/carleton.ca\/scs\/2021\/connecting-to-an-openstack-instance-using-ssh-putty\/\">SSH Connection Using the putty SSH Terminal Client<\/a> &#8211; an article explaining how to configure putty to connect to a server, using an Openstack instance as an example.<\/li>\n<\/ul>\n<h3>Login using ssh to Linux using the graphical method<\/h3>\n<p>At SCS, we use the <a href=\"https:\/\/wiki.x2go.org\" target=\"_blank\" rel=\"noopener noreferrer\">x2go<\/a> client to connect to a Linux host graphically (using X11).<\/p>\n<ul>\n<li><a href=\"https:\/\/carleton.ca\/scs\/2021\/ssh-connection-with-x2go-remote-desktop-client\/\">SSH Connection with x2go Remote Desktop Client<\/a> &#8211; an article explaining how to configure x2go to connect to a server, using an Openstack instance as an example.<\/li>\n<\/ul>\n<h2><a id=\"ssh-key\"><\/a>ssh-key logins<\/h2>\n<p>We encourage the use of ssh-key logins as it is both a convenient and safe way to ssh to your destination host without needing a password.<br \/>\nSee the <a href=\"https:\/\/carleton.ca\/scs\/2019\/passwordless-ssh-with-key-pairs\/\">Passwordless SSH With Key Pairs<\/a> article for detailed instructions.<\/p>\n<h2><a id=\"common-ssh-problems\"><\/a>Common ssh questions<\/h2>\n<section class=\"content-wrapper content-wrapper--shortcode\"><div class=\"u-post-reload\"><div class=\"news news--archive u-width-limited\"><a class=\"news__link  news__link--archive\" href=\"https:\/\/carleton.ca\/scs\/2024\/putty-ssh-client-found-vulnerable-to-key-recovery-attack\/\"><p class=\"news__date news__date--archive\">Tuesday, November 12, 2024<\/p><h3 class=\"news__heading u-hide-in-toc news__heading--archive\" rel=\"bookmark\">PuTTY SSH Client Found Vulnerable to Key Recovery Attack<\/h3><p class=\"news__excerpt news__excerpt--archive\">In PuTTY 0.68 through 0.80 before 0.81, biased ECDSA nonce generation allows an attacker to recover a user&#039;s NIST P-521 secret key via a quick attack in approximately 60 signatures. This is especially important in a scenario where an adversary is able to read messages signed by PuTTY or Pageant. Besides impacting PuTTY, it... <span class=\"news__more-link\">More<\/span><\/p><\/a><\/div><div class=\"news news--archive u-width-limited\"><a class=\"news__link  news__link--archive\" href=\"https:\/\/carleton.ca\/scs\/2024\/vscode-remote-access-and-code-editing\/\"><p class=\"news__date news__date--archive\">Tuesday, November 12, 2024<\/p><h3 class=\"news__heading u-hide-in-toc news__heading--archive\" rel=\"bookmark\">vscode: Remote Access and Code Editing<\/h3><p class=\"news__excerpt news__excerpt--archive\">vscode: Remote Access and Code Editing Step 1: Install vscode Step 2: Install Remote-SSH Extension Step 3: Create Remote-SSH Connection Step 4: Open Folder on Remote Server Step 5: Open a terminal, edit some code, run some code! Troubleshooting: Failed Login Troubleshooting: Disk Full In addition to these instructions, you can find a video... <span class=\"news__more-link\">More<\/span><\/p><\/a><\/div><div class=\"news news--archive u-width-limited\"><a class=\"news__link  news__link--archive\" href=\"https:\/\/carleton.ca\/scs\/2024\/ssh-error-too-many-authentication-requests\/\"><p class=\"news__date news__date--archive\">Tuesday, November 12, 2024<\/p><h3 class=\"news__heading u-hide-in-toc news__heading--archive\" rel=\"bookmark\">ssh error: too many authentication requests<\/h3><p class=\"news__excerpt news__excerpt--archive\">When ssh&#039;ing to access.scs.carleton.ca you may receive the error: Received disconnect: Too many authentication failures Disconnected There are at least two reasons for this message. If you provide a wrong password multiple times within a short period of time, it may be locked out - you will have to wait and then try again.This... <span class=\"news__more-link\">More<\/span><\/p><\/a><\/div><div class=\"news news--archive u-width-limited\"><a class=\"news__link  news__link--archive\" href=\"https:\/\/carleton.ca\/scs\/2024\/unable-to-negotiate-no-matching-key-exchange-method-found\/\"><p class=\"news__date news__date--archive\">Tuesday, November 12, 2024<\/p><h3 class=\"news__heading u-hide-in-toc news__heading--archive\" rel=\"bookmark\">Unable to negotiate: no matching key exchange method found.<\/h3><p class=\"news__excerpt news__excerpt--archive\">Some ssh clients may complain with: &quot;Unable to negotiate with 134.117.xxx.xxx port 22: no matching key exchange method found.&quot; The connect as follows: ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 access.scs.carleton.ca Replace access.scs.carleton.ca with your destination... <span class=\"news__more-link\">More<\/span><\/p><\/a><\/div><div class=\"news news--archive u-width-limited\"><a class=\"news__link  news__link--archive\" href=\"https:\/\/carleton.ca\/scs\/2024\/ssh-key-exchange-errors\/\"><p class=\"news__date news__date--archive\">Tuesday, November 12, 2024<\/p><h3 class=\"news__heading u-hide-in-toc news__heading--archive\" rel=\"bookmark\">SSH Key Exchange Errors<\/h3><p class=\"news__excerpt news__excerpt--archive\">Annually the SCS Linux Network hosts are upgraded, and the ssh-keys will no longer match. If you know that the server has been upgraded and your ssh-keys no longer match, then it will be safe to accept the new ssh key. Your system administrator will be able to confirm if this is due to... <span class=\"news__more-link\">More<\/span><\/p><\/a><\/div><div class=\"news news--archive u-width-limited\"><a class=\"news__link  news__link--archive\" href=\"https:\/\/carleton.ca\/scs\/2024\/ssh-connection-with-x2go-remote-desktop-client\/\"><p class=\"news__date news__date--archive\">Tuesday, November 12, 2024<\/p><h3 class=\"news__heading u-hide-in-toc news__heading--archive\" rel=\"bookmark\">SSH Connection with x2go Remote Desktop Client<\/h3><p class=\"news__excerpt news__excerpt--archive\">SSH Connection with x2go Remote Desktop Client DEPRECATED - x2go is not used on newer images created since the Fall of 2024 - Instead use TurboVNC with our newer images Download x2go: here You can find a video demo of these instructions here: Connect to Remote Desktop via x2go (Video) Use the following settings... <span class=\"news__more-link\">More<\/span><\/p><\/a><\/div><div class=\"news news--archive u-width-limited\"><a class=\"news__link  news__link--archive\" href=\"https:\/\/carleton.ca\/scs\/2024\/connecting-to-an-openstack-instance-using-ssh-putty\/\"><p class=\"news__date news__date--archive\">Tuesday, November 12, 2024<\/p><h3 class=\"news__heading u-hide-in-toc news__heading--archive\" rel=\"bookmark\">SSH Connection Using the putty SSH Terminal Client<\/h3><p class=\"news__excerpt news__excerpt--archive\">SSH Connection Using the putty SSH Terminal Client NOTE: This example uses putty, but the settings are the same for any tool using ssh, scp, etc. Download Putty: here You can find a video demo of these instructions here: Connect Remotely via a putty terminal (video) &nbsp; Enter settings into putty: Enter username \/... <span class=\"news__more-link\">More<\/span><\/p><\/a><\/div><div class=\"news news--archive u-width-limited\"><a class=\"news__link  news__link--archive\" href=\"https:\/\/carleton.ca\/scs\/2024\/passwordless-ssh-with-key-pairs\/\"><p class=\"news__date news__date--archive\">Tuesday, November 12, 2024<\/p><h3 class=\"news__heading u-hide-in-toc news__heading--archive\" rel=\"bookmark\">Passwordless SSH With Key Pairs<\/h3><p class=\"news__excerpt news__excerpt--archive\">What is an SSH Key Pair? Why use Key Pairs? Comparing Password vs Key Pair Authentication Creating Key Pairs Authenticating and Connecting with Key Pairs Advanced Topic: Configuring SSH SSH allows you to securely connect to remote computers and virtual machines. With SSH, you can use a computer remotely through the terminal, transfer files... <span class=\"news__more-link\">More<\/span><\/p><\/a><\/div><div class=\"news news--archive u-width-limited\"><a class=\"news__link  news__link--archive\" href=\"https:\/\/carleton.ca\/scs\/2024\/connecting-to-openstack-instances-ssh-with-putty\/\"><p class=\"news__date news__date--archive\">Tuesday, November 12, 2024<\/p><h3 class=\"news__heading u-hide-in-toc news__heading--archive\" rel=\"bookmark\">Connecting to OpenStack Instances (SSH With PuTTY)<\/h3><p class=\"news__excerpt news__excerpt--archive\">NOTE: This example uses putty, but the settings are the same for any tool using SSH, SCP, etc. Download Putty: here Use the following settings to make a terminal connection - Some of your settings will be different host: 134.117.216.10 - Replace this with your own instance&#039;s floating IP address username: student - default... <span class=\"news__more-link\">More<\/span><\/p><\/a><\/div><div class=\"news news--archive u-width-limited\"><a class=\"news__link  news__link--archive\" href=\"https:\/\/carleton.ca\/scs\/2024\/scs-account-update-error-invalid-carletonone-password\/\"><p class=\"news__date news__date--archive\">Monday, September 16, 2024<\/p><h3 class=\"news__heading u-hide-in-toc news__heading--archive\" rel=\"bookmark\">SCS Account Update Error &#8211; Invalid CarletonOne password<\/h3><p class=\"news__excerpt news__excerpt--archive\">When updating your SCS Account, some users may get the Invalid CarletonOne password error, as indicated in the image below (see GREEN box). Debugging the Invalid CarletonOne password Error As the error suggests, this means you are entering your mc1 (My Carleton One) password incorrectly. If you are confident that the password is correct,... <span class=\"news__more-link\">More<\/span><\/p><\/a><\/div><div class=\"news news--archive u-width-limited\"><a class=\"news__link  news__link--archive\" href=\"https:\/\/carleton.ca\/scs\/2024\/ssh-connection-with-turbovnc\/\"><p class=\"news__date news__date--archive\">Thursday, August 22, 2024<\/p><h3 class=\"news__heading u-hide-in-toc news__heading--archive\" rel=\"bookmark\">SSH Connection with TurboVNC<\/h3><p class=\"news__excerpt news__excerpt--archive\">SSH Connection with TurboVNC Remote Desktop Client Our openstack images that include desktops are preconfigured to run the turbovnc server. This server allows you to connect to your openstack instance using the TurboVNC client, which provides a very fast and secure desktop environment. Step 1: Download TurboVNC Client for your OS Step 2: Install... <span class=\"news__more-link\">More<\/span><\/p><\/a><\/div><\/div><div class=\"pagination u-clearfix\"><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"<p>Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. At the School of Computer Science, we use ssh for remote connection logins to our computers. Logging in to Linux using ssh ssh-key logins Common ssh questions Logging in to Linux using SSH There are two ways to [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"parent":6535,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","_mi_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":"","_links_to":"","_links_to_target":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Secure Shell (ssh) - School of Computer Science<\/title>\n<meta name=\"description\" content=\"Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. At the School of Computer\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/carleton.ca\/scs\/tech-support\/secure-shell-ssh\/\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/carleton.ca\/scs\/tech-support\/secure-shell-ssh\/\",\"url\":\"https:\/\/carleton.ca\/scs\/tech-support\/secure-shell-ssh\/\",\"name\":\"Secure Shell (ssh) - School of Computer Science\",\"isPartOf\":{\"@id\":\"https:\/\/carleton.ca\/scs\/#website\"},\"datePublished\":\"2020-08-31T18:42:26+00:00\",\"dateModified\":\"2022-12-21T18:54:20+00:00\",\"description\":\"Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. At the School of Computer\",\"breadcrumb\":{\"@id\":\"https:\/\/carleton.ca\/scs\/tech-support\/secure-shell-ssh\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/carleton.ca\/scs\/tech-support\/secure-shell-ssh\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/carleton.ca\/scs\/tech-support\/secure-shell-ssh\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/carleton.ca\/scs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Technical Support\",\"item\":\"https:\/\/carleton.ca\/scs\/tech-support\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Secure Shell (ssh)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/carleton.ca\/scs\/#website\",\"url\":\"https:\/\/carleton.ca\/scs\/\",\"name\":\"School of Computer Science\",\"description\":\"Carleton University\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/carleton.ca\/scs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Secure Shell (ssh) - School of Computer Science","description":"Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. At the School of Computer","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/carleton.ca\/scs\/tech-support\/secure-shell-ssh\/","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/carleton.ca\/scs\/tech-support\/secure-shell-ssh\/","url":"https:\/\/carleton.ca\/scs\/tech-support\/secure-shell-ssh\/","name":"Secure Shell (ssh) - School of Computer Science","isPartOf":{"@id":"https:\/\/carleton.ca\/scs\/#website"},"datePublished":"2020-08-31T18:42:26+00:00","dateModified":"2022-12-21T18:54:20+00:00","description":"Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. At the School of Computer","breadcrumb":{"@id":"https:\/\/carleton.ca\/scs\/tech-support\/secure-shell-ssh\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/carleton.ca\/scs\/tech-support\/secure-shell-ssh\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/carleton.ca\/scs\/tech-support\/secure-shell-ssh\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/carleton.ca\/scs\/"},{"@type":"ListItem","position":2,"name":"Technical Support","item":"https:\/\/carleton.ca\/scs\/tech-support\/"},{"@type":"ListItem","position":3,"name":"Secure Shell (ssh)"}]},{"@type":"WebSite","@id":"https:\/\/carleton.ca\/scs\/#website","url":"https:\/\/carleton.ca\/scs\/","name":"School of Computer Science","description":"Carleton University","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/carleton.ca\/scs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"}]}},"acf":{"banner_image_type":"upload","banner_button":"no","banner_uploaded_image":{"ID":8874,"id":8874,"title":"matrix backdrop","filename":"it-support.jpg","filesize":246557,"url":"https:\/\/carleton.ca\/scs\/wp-content\/uploads\/it-support.jpg","link":"https:\/\/carleton.ca\/scs\/tech-support\/it-help-and-services\/it-support\/","alt":"matrix backdrop","author":"7","description":"matrix backdrop","caption":"","name":"it-support","status":"inherit","uploaded_to":8842,"date":"2021-02-04 21:42:10","modified":"2022-09-08 13:46:45","menu_order":0,"mime_type":"image\/jpeg","type":"image","subtype":"jpeg","icon":"https:\/\/carleton.ca\/scs\/wp\/wp-includes\/images\/media\/default.png","width":1600,"height":700,"sizes":{"thumbnail":"https:\/\/carleton.ca\/scs\/wp-content\/uploads\/it-support-160x70.jpg","thumbnail-width":160,"thumbnail-height":70,"medium":"https:\/\/carleton.ca\/scs\/wp-content\/uploads\/it-support-240x105.jpg","medium-width":240,"medium-height":105,"medium_large":"https:\/\/carleton.ca\/scs\/wp-content\/uploads\/it-support-768x336.jpg","medium_large-width":768,"medium_large-height":336,"large":"https:\/\/carleton.ca\/scs\/wp-content\/uploads\/it-support-400x175.jpg","large-width":400,"large-height":175,"gallery-thumb":"https:\/\/carleton.ca\/scs\/wp-content\/uploads\/it-support-300x230.jpg","gallery-thumb-width":300,"gallery-thumb-height":230,"1536x1536":"https:\/\/carleton.ca\/scs\/wp-content\/uploads\/it-support-1536x672.jpg","1536x1536-width":1536,"1536x1536-height":672,"2048x2048":"https:\/\/carleton.ca\/scs\/wp-content\/uploads\/it-support.jpg","2048x2048-width":1600,"2048x2048-height":700,"banner":"https:\/\/carleton.ca\/scs\/wp-content\/uploads\/it-support.jpg","banner-width":1600,"banner-height":700,"people":"https:\/\/carleton.ca\/scs\/wp-content\/uploads\/it-support-200x200.jpg","people-width":200,"people-height":200,"post-thumb":"https:\/\/carleton.ca\/scs\/wp-content\/uploads\/it-support-300x230.jpg","post-thumb-width":300,"post-thumb-height":230,"rotator-image":"https:\/\/carleton.ca\/scs\/wp-content\/uploads\/it-support-800x600.jpg","rotator-image-width":800,"rotator-image-height":600,"video-thumb":"https:\/\/carleton.ca\/scs\/wp-content\/uploads\/it-support-360x158.jpg","video-thumb-width":360,"video-thumb-height":158}},"banner_opacity":"default"},"_links":{"self":[{"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/pages\/7975"}],"collection":[{"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/comments?post=7975"}],"version-history":[{"count":6,"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/pages\/7975\/revisions"}],"predecessor-version":[{"id":16161,"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/pages\/7975\/revisions\/16161"}],"up":[{"embeddable":true,"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/pages\/6535"}],"wp:attachment":[{"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/media?parent=7975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}