{"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":"2026-06-02T15:00:08","modified_gmt":"2026-06-02T19:00:08","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":"\n<section class=\"w-screen px-6 cu-section cu-section--white ml-offset-center md:px-8 lg:px-14\">\n    <div class=\"space-y-6 cu-max-w-child-5xl  md:space-y-10 cu-prose-first-last\">\n\n            <div class=\"cu-textmedia flex flex-col lg:flex-row mx-auto gap-6 md:gap-10 my-6 md:my-12 first:mt-0 max-w-5xl\">\n        <div class=\"justify-start cu-textmedia-content cu-prose-first-last\" style=\"flex: 0 0 100%;\">\n            <header class=\"font-light prose-xl cu-pageheader md:prose-2xl cu-component-updated cu-prose-first-last\">\n                                    <h1 class=\"cu-prose-first-last font-semibold !mt-2 mb-4 md:mb-6 relative after:absolute after:h-px after:bottom-0 after:bg-cu-red after:left-px text-3xl md:text-4xl lg:text-5xl lg:leading-[3.5rem] pb-5 after:w-10 text-cu-black-700 not-prose\">\n                        Secure Shell (ssh)\n                    <\/h1>\n                \n                                \n                            <\/header>\n\n                    <\/div>\n\n            <\/div>\n\n    <\/div>\n<\/section>\n\n<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\n\n\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\n\n\n<h2 id=\"logging-in-to-linux-using-ssh\" class=\"wp-block-heading\"><a id=\"login\"><\/a>Logging in to Linux using SSH<\/h2>\n\n\n\n<p>There are two ways to login to a remote Linux server using SSH:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>terminal server (text only)<\/li>\n\n\n\n<li>remote desktop (graphical\/X11)<br><br><em><strong>Not all servers support X11-sessions<\/strong>. Check the servers&#8217; capabilities for remote desktop connections.<\/em><\/li>\n<\/ol>\n\n\n\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\n\n\n<h3 id=\"login-using-ssh-to-linux-using-the-terminal\" class=\"wp-block-heading\">Login using ssh to Linux using the terminal<\/h3>\n\n\n\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\n\n\n<ul class=\"wp-block-list\">\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\n\n\n<h3 id=\"login-using-ssh-to-linux-using-the-graphical-method\" class=\"wp-block-heading\">Login using ssh to Linux using the graphical method<\/h3>\n\n\n\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\n\n\n<ul class=\"wp-block-list\">\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\n\n\n<h2 id=\"ssh-key-logins\" class=\"wp-block-heading\"><a id=\"ssh-key\"><\/a>ssh-key logins<\/h2>\n\n\n\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\n\n\n<h2 id=\"common-ssh-questions\" class=\"wp-block-heading\"><a id=\"common-ssh-problems\"><\/a>Common ssh questions<\/h2>\n\n\n\n    \n\n\n                                                                                                                                                                                                                                                                                                                                                                                                                \n\n\n\n<section class=\"w-screen px-6 cu-section cu-section--white cu-section--cards ml-offset-center md:px-8 lg:px-14\" data-attributes=\"&#x7B;&quot;numberOfPosts&quot;&#x3A;6,&quot;orderBy&quot;&#x3A;&quot;date&quot;,&quot;blockType&quot;&#x3A;&quot;cards&quot;,&quot;contentType&quot;&#x3A;&quot;post&quot;,&quot;currentPage&quot;&#x3A;1,&quot;blockBackground&quot;&#x3A;&quot;white&quot;,&quot;numberOfColumns&quot;&#x3A;3,&quot;showImages&quot;&#x3A;true,&quot;showDates&quot;&#x3A;true,&quot;showTimeToRead&quot;&#x3A;true,&quot;showExcerpts&quot;&#x3A;true,&quot;showFilter&quot;&#x3A;false,&quot;taxName&quot;&#x3A;&quot;category&quot;,&quot;moreButton&quot;&#x3A;&quot;none&quot;,&quot;categories&quot;&#x3A;&quot;99&quot;,&quot;tags&quot;&#x3A;&quot;&quot;&#x7D;\" data-page=\"2\">\n    <div class=\"space-y-6 cu-max-w-child-5xl  md:space-y-10 cu-prose-first-last\">\n\n                \n                \n        <div class=\"cu-loading hidden text-center mx-auto h-6 w-6 animate-spin rounded-full border-4 border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]\" role=\"status\">\n    <span class=\"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]\">\n        Loading&#8230;\n    <\/span>\n<\/div>\n\n                                        \n        <p class=\"cu-no-posts hidden\">\n            No\n            category\n\n            posts are available.\n        <\/p>\n\n                <div class=\"cu-column cu-component not-contained mx-auto grid max-w-5xl md:grid-cols-3 gap-6 md:gap-10\">\n                        \n                    \n\n<div class=\"not-prose cu-card rounded-lg @container md:max-w-xl flex flex-col gap-3 bg-white shadow-lg shadow-cu-black-100 group duration-300 ease-in hover:scale-[1.02] hover:shadow-cu-black-200\">\n\n            <figure class=\"mb-2 overflow-hidden rounded-t-lg\">\n            <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/its-production.s3.amazonaws.com\/gutenberg\/cutheme-plugin\/images\/thumb-fallbacks\/news-thumb-1.jpg\" alt=\"Randomly generated thumbnail\" width=\"600\" height=\"400\" \/>\n        <\/figure>\n    \n    \n        <header class=\"flex flex-col gap-3  px-6 first:mt-6\">\n        <div class=\"flex flex-row w-full gap-1\">\n                        <time datetime=\"2024-11-11T19:00:00-05:00\" class=\"block italic text-sm text-cu-black-600\">\n        November 12, 2024\n    <\/time>\n\n                    <\/div>        \n        \n    \n    <h2 class=\"line-clamp-3 text-lg font-semibold text-cu-black @sm:md:text-xl leading-6 @sm:md:leading-8\">\n        PuTTY SSH Client Found Vulnerable to Key Recovery Attack\n    <\/h2>\n\n            <\/header>\n\n\n            <div class=\"flex flex-col px-6 dark:text-white\">\n            <p class=\"text-base text-cu-black-700 dark:text-white \">\n                In PuTTY 0.68 through 0.80 before 0.81, biased ECDSA nonce generation allows an attacker to recover a user&#8217;s NIST P-521 secret key via a quick\n                                    &#8230;\n                            <\/p>\n        <\/div>\n    \n    <footer class=\"px-6 pt-3 mt-auto md:pt-5\">\n        <a href=\"https:\/\/carleton.ca\/scs\/2024\/putty-ssh-client-found-vulnerable-to-key-recovery-attack\/\" class=\"cu-button cu-button--red cu-button--small\">\n            Read news\n            <span class=\"sr-only\">\n                post\n                PuTTY SSH Client Found Vulnerable to Key Recovery Attack\n            <\/span>\n        <\/a>\n    <\/footer>\n<\/div>\n\n            \n                    \n\n<div class=\"not-prose cu-card rounded-lg @container md:max-w-xl flex flex-col gap-3 bg-white shadow-lg shadow-cu-black-100 group duration-300 ease-in hover:scale-[1.02] hover:shadow-cu-black-200\">\n\n            <figure class=\"mb-2 overflow-hidden rounded-t-lg\">\n            <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/carleton.ca\/scs\/wp-content\/uploads\/sites\/260\/vscode-600x400.png\" alt=\"\" width=\"600\" height=\"400\" \/>\n        <\/figure>\n    \n    \n        <header class=\"flex flex-col gap-3  px-6 first:mt-6\">\n        <div class=\"flex flex-row w-full gap-1\">\n                        <time datetime=\"2024-11-11T19:00:00-05:00\" class=\"block italic text-sm text-cu-black-600\">\n        November 12, 2024\n    <\/time>\n\n                    <\/div>        \n        \n    \n    <h2 class=\"line-clamp-3 text-lg font-semibold text-cu-black @sm:md:text-xl leading-6 @sm:md:leading-8\">\n        vscode: Remote Access and Code Editing\n    <\/h2>\n\n            <\/header>\n\n\n            <div class=\"flex flex-col px-6 dark:text-white\">\n            <p class=\"text-base text-cu-black-700 dark:text-white \">\n                In addition to these instructions, you can find a video tutorial here: Video: vscode: Remote Access and Code Editing Step 1: Install vscode The first\n                                    &#8230;\n                            <\/p>\n        <\/div>\n    \n    <footer class=\"px-6 pt-3 mt-auto md:pt-5\">\n        <a href=\"https:\/\/carleton.ca\/scs\/2024\/vscode-remote-access-and-code-editing\/\" class=\"cu-button cu-button--red cu-button--small\">\n            Read news\n            <span class=\"sr-only\">\n                post\n                vscode: Remote Access and Code Editing\n            <\/span>\n        <\/a>\n    <\/footer>\n<\/div>\n\n            \n                    \n\n<div class=\"not-prose cu-card rounded-lg @container md:max-w-xl flex flex-col gap-3 bg-white shadow-lg shadow-cu-black-100 group duration-300 ease-in hover:scale-[1.02] hover:shadow-cu-black-200\">\n\n            <figure class=\"mb-2 overflow-hidden rounded-t-lg\">\n            <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/its-production.s3.amazonaws.com\/gutenberg\/cutheme-plugin\/images\/thumb-fallbacks\/news-thumb-3.jpg\" alt=\"Randomly generated thumbnail\" width=\"600\" height=\"400\" \/>\n        <\/figure>\n    \n    \n        <header class=\"flex flex-col gap-3  px-6 first:mt-6\">\n        <div class=\"flex flex-row w-full gap-1\">\n                        <time datetime=\"2024-11-11T19:00:00-05:00\" class=\"block italic text-sm text-cu-black-600\">\n        November 12, 2024\n    <\/time>\n\n                    <\/div>        \n        \n    \n    <h2 class=\"line-clamp-3 text-lg font-semibold text-cu-black @sm:md:text-xl leading-6 @sm:md:leading-8\">\n        ssh error: too many authentication requests\n    <\/h2>\n\n            <\/header>\n\n\n            <div class=\"flex flex-col px-6 dark:text-white\">\n            <p class=\"text-base text-cu-black-700 dark:text-white \">\n                When ssh&#8217;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.\n                                    &#8230;\n                            <\/p>\n        <\/div>\n    \n    <footer class=\"px-6 pt-3 mt-auto md:pt-5\">\n        <a href=\"https:\/\/carleton.ca\/scs\/2024\/ssh-error-too-many-authentication-requests\/\" class=\"cu-button cu-button--red cu-button--small\">\n            Read news\n            <span class=\"sr-only\">\n                post\n                ssh error: too many authentication requests\n            <\/span>\n        <\/a>\n    <\/footer>\n<\/div>\n\n            \n                    \n\n<div class=\"not-prose cu-card rounded-lg @container md:max-w-xl flex flex-col gap-3 bg-white shadow-lg shadow-cu-black-100 group duration-300 ease-in hover:scale-[1.02] hover:shadow-cu-black-200\">\n\n            <figure class=\"mb-2 overflow-hidden rounded-t-lg\">\n            <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/its-production.s3.amazonaws.com\/gutenberg\/cutheme-plugin\/images\/thumb-fallbacks\/news-thumb-4.jpg\" alt=\"Randomly generated thumbnail\" width=\"600\" height=\"400\" \/>\n        <\/figure>\n    \n    \n        <header class=\"flex flex-col gap-3  px-6 first:mt-6\">\n        <div class=\"flex flex-row w-full gap-1\">\n                        <time datetime=\"2024-11-11T19:00:00-05:00\" class=\"block italic text-sm text-cu-black-600\">\n        November 12, 2024\n    <\/time>\n\n                    <\/div>        \n        \n    \n    <h2 class=\"line-clamp-3 text-lg font-semibold text-cu-black @sm:md:text-xl leading-6 @sm:md:leading-8\">\n        Unable to negotiate: no matching key exchange method found.\n    <\/h2>\n\n            <\/header>\n\n\n            <div class=\"flex flex-col px-6 dark:text-white\">\n            <p class=\"text-base text-cu-black-700 dark:text-white \">\n                Some ssh clients may complain with: &#8220;Unable to negotiate with 134.117.xxx.xxx port 22: no matching key exchange method found.&#8221; The connect as follows: Replace access.scs.carleton.ca\n                                    &#8230;\n                            <\/p>\n        <\/div>\n    \n    <footer class=\"px-6 pt-3 mt-auto md:pt-5\">\n        <a href=\"https:\/\/carleton.ca\/scs\/2024\/unable-to-negotiate-no-matching-key-exchange-method-found\/\" class=\"cu-button cu-button--red cu-button--small\">\n            Read news\n            <span class=\"sr-only\">\n                post\n                Unable to negotiate: no matching key exchange method found.\n            <\/span>\n        <\/a>\n    <\/footer>\n<\/div>\n\n            \n                    \n\n<div class=\"not-prose cu-card rounded-lg @container md:max-w-xl flex flex-col gap-3 bg-white shadow-lg shadow-cu-black-100 group duration-300 ease-in hover:scale-[1.02] hover:shadow-cu-black-200\">\n\n            <figure class=\"mb-2 overflow-hidden rounded-t-lg\">\n            <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/its-production.s3.amazonaws.com\/gutenberg\/cutheme-plugin\/images\/thumb-fallbacks\/news-thumb-5.jpg\" alt=\"Randomly generated thumbnail\" width=\"600\" height=\"400\" \/>\n        <\/figure>\n    \n    \n        <header class=\"flex flex-col gap-3  px-6 first:mt-6\">\n        <div class=\"flex flex-row w-full gap-1\">\n                        <time datetime=\"2024-11-11T19:00:00-05:00\" class=\"block italic text-sm text-cu-black-600\">\n        November 12, 2024\n    <\/time>\n\n                    <\/div>        \n        \n    \n    <h2 class=\"line-clamp-3 text-lg font-semibold text-cu-black @sm:md:text-xl leading-6 @sm:md:leading-8\">\n        SSH Key Exchange Errors\n    <\/h2>\n\n            <\/header>\n\n\n            <div class=\"flex flex-col px-6 dark:text-white\">\n            <p class=\"text-base text-cu-black-700 dark:text-white \">\n                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\n                                    &#8230;\n                            <\/p>\n        <\/div>\n    \n    <footer class=\"px-6 pt-3 mt-auto md:pt-5\">\n        <a href=\"https:\/\/carleton.ca\/scs\/2024\/ssh-key-exchange-errors\/\" class=\"cu-button cu-button--red cu-button--small\">\n            Read news\n            <span class=\"sr-only\">\n                post\n                SSH Key Exchange Errors\n            <\/span>\n        <\/a>\n    <\/footer>\n<\/div>\n\n            \n                    \n\n<div class=\"not-prose cu-card rounded-lg @container md:max-w-xl flex flex-col gap-3 bg-white shadow-lg shadow-cu-black-100 group duration-300 ease-in hover:scale-[1.02] hover:shadow-cu-black-200\">\n\n            <figure class=\"mb-2 overflow-hidden rounded-t-lg\">\n            <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/carleton.ca\/scs\/wp-content\/uploads\/sites\/260\/x2go-newsession-ready-600x400.png\" alt=\"\" width=\"600\" height=\"400\" \/>\n        <\/figure>\n    \n    \n        <header class=\"flex flex-col gap-3  px-6 first:mt-6\">\n        <div class=\"flex flex-row w-full gap-1\">\n                        <time datetime=\"2024-11-11T19:00:00-05:00\" class=\"block italic text-sm text-cu-black-600\">\n        November 12, 2024\n    <\/time>\n\n                    <\/div>        \n        \n    \n    <h2 class=\"line-clamp-3 text-lg font-semibold text-cu-black @sm:md:text-xl leading-6 @sm:md:leading-8\">\n        SSH Connection with x2go Remote Desktop Client\n    <\/h2>\n\n            <\/header>\n\n\n            <div class=\"flex flex-col px-6 dark:text-white\">\n            <p class=\"text-base text-cu-black-700 dark:text-white \">\n                DEPRECATED &#8211; x2go is not used on newer images created since the Fall of 2024 &#8211; Instead use TurboVNC with our newer images Download x2go:\n                                    &#8230;\n                            <\/p>\n        <\/div>\n    \n    <footer class=\"px-6 pt-3 mt-auto md:pt-5\">\n        <a href=\"https:\/\/carleton.ca\/scs\/2024\/ssh-connection-with-x2go-remote-desktop-client\/\" class=\"cu-button cu-button--red cu-button--small\">\n            Read news\n            <span class=\"sr-only\">\n                post\n                SSH Connection with x2go Remote Desktop Client\n            <\/span>\n        <\/a>\n    <\/footer>\n<\/div>\n\n                    \n        <\/div>\n        \n                                    \n    <\/div>\n<\/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":2,"featured_media":0,"parent":6535,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_cu_dining_location_slug":"","footnotes":"","_links_to":"","_links_to_target":""},"cu_page_type":[],"class_list":["post-7975","page","type-page","status-publish","hentry"],"acf":{"cu_post_thumbnail":false},"_links":{"self":[{"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/pages\/7975","targetHints":{"allow":["GET"]}}],"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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/comments?post=7975"}],"version-history":[{"count":5,"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"}],"wp:term":[{"taxonomy":"cu_page_type","embeddable":true,"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/cu_page_type?post=7975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}