{"id":137917,"date":"2021-12-03T15:08:55","date_gmt":"2021-12-03T20:08:55","guid":{"rendered":"http:\/\/www.bu.edu\/tech\/?page_id=137917"},"modified":"2023-03-25T17:36:39","modified_gmt":"2023-03-25T21:36:39","slug":"ssh","status":"publish","type":"page","link":"https:\/\/www.bu.edu\/tech\/support\/research\/system-usage\/connect-scc\/ssh\/","title":{"rendered":"SSH"},"content":{"rendered":"<div id=\"connecting\">\n<p><a name=\"top\"><\/a><\/p>\n<h2>Overview<\/h2>\n<p>One method of connecting to the <a href=\"https:\/\/www.bu.edu\/tech\/support\/research\/computing-resources\/scc\/\">Shared Computing Cluster (SCC)<\/a> from your local computer is to use an <b>SSH<\/b> (Secure SHell) client. This page provides a list of SSH clients available by Operating System and general instructions on how to use them to connect to the SCC. For using graphical user interface (GUI) based applications on the SCC, use the <a href=\"https:\/\/www.bu.edu\/tech\/support\/research\/system-usage\/connect-scc\/scc-ondemand\/\">OnDemand system<\/a> for ease and better performance.<\/p>\n<p>Duo two-factor authentication is required for an SSH connection. Go to the <a href=\"https:\/\/www.bu.edu\/tech\/support\/research\/system-usage\/connect-scc\/access-and-security\/two-factor\/\">SCC Duo Authentication guide<\/a> to learn more.<\/p>\n<p>To connect to the SCC, you will need to connect to one of the login nodes summarized in the table below. There are four login nodes for the Shared Computing Cluster. To connect to a specific login node, you will use the hostname as part of the SSH connection setup.<\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td><b>Hostname<\/b><\/td>\n<td><b>Note<\/b><\/td>\n<\/tr>\n<tr>\n<td>scc1.bu.edu<\/td>\n<td>General purpose login node, accessible from the general internet.<\/td>\n<\/tr>\n<tr>\n<td>scc2.bu.edu<\/td>\n<td>General purpose login node, accessible from the general internet.<\/td>\n<\/tr>\n<tr>\n<td>geo.bu.edu<\/td>\n<td>Earth and Environment department node, accessible from the general internet.<\/td>\n<\/tr>\n<tr>\n<td>scc4.bu.edu<\/td>\n<td>BUMC node. Access to <span class=\"code\">\/restricted<\/span> data partitions. <span class=\"highlight\">Requires <a href=\"http:\/\/vpn.bu.edu\">VPN<\/a><\/span> or first logging in through another node, such as <code><span class=\"command\">scc1.bu.edu<\/span><\/code>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><!-- BEGIN OS SELECTION --><\/p>\n<h4>Select your operating system<\/h4>\n<table border=\"0\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><strong><input name=\"os\" id=\"windows1\" onclick=\"show_os('windows')\" value=\"windows\" type=\"radio\" \/><\/strong><br \/>\n<strong> <label for=\"windows1\"><br \/>\nMicrosoft Windows<\/label><\/strong><\/td>\n<td style=\"text-align: center;\"><input name=\"os\" id=\"apple1\" onclick=\"show_os('apple')\" value=\"apple\" type=\"radio\" \/><br \/>\n<strong><label for=\"apple1\"><br \/>\nApple OS X<\/label><\/strong><\/td>\n<td style=\"text-align: center;\"><input name=\"os\" id=\"linux1\" onclick=\"show_os('linux')\" value=\"liux\" type=\"radio\" \/><br \/>\n<strong><label for=\"linux1\"><br \/>\nLinux Distributions<\/label><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><!-- END OS SELECTION --><\/p>\n<p><!-- Windows --><\/p>\n<div id=\"windows\">\n<h2>Connecting to the SCC from Microsoft Windows<a name=\"WINDOWS\"><\/a><\/h2>\n<p>There are multiple SSH clients available for Microsoft Windows, each will connect to the SCC using the same protocol. These instructions are based on MobaXterm because this application provides functionality you may find useful for other tasks; other application suggestions are below.<\/p>\n<h4>SSH Clients<\/h4>\n<ul>\n<li><a href=\"http:\/\/mobaxterm.mobatek.net\/download-home-edition.html\">MobaXterm<\/a><\/li>\n<li><a href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html\">PuTTY<\/a><\/li>\n<li><a href=\"https:\/\/www.bu.edu\/tech\/services\/cccs\/desktop\/distribution\/xwindows\/xwin32\/\/\">X-Win32<\/a><\/li>\n<\/ul>\n<h4>Using MobaXterm to Connect to the SCC<\/h4>\n<h5>Installing MobaXTerm<\/h5>\n<ol>\n<li>Go to the <a href=\"http:\/\/mobaxterm.mobatek.net\/download-home-edition.html\">MobaXTerm download page<\/a>. It is recommended to download the &#8220;Installer Edition&#8221;, not the &#8220;Portable Edition&#8221;.<\/li>\n<li>Unzip the file &#8211; <strong>right<\/strong> click the ZIP file that downloaded, and choose &#8220;Extract All&#8221; in the menu that pops up.<\/li>\n<li>In the folder that was extracted in the previous step, double click the &#8220;MobaXterm_installer_VERSION.msi&#8221; file (where VERSION is whatever version number you downloaded) to start the installation wizard.<\/li>\n<li>Navigate through the installation wizard until the program is installed.<\/li>\n<\/ol>\n<p>After installing MobaXTerm, you can connect to the SCC by creating a &#8220;Session&#8221; or using the MobaXTerm Local Terminal. Both methods are described in the next two sections.<\/p>\n<h5>Connect by creating a &#8220;Session&#8221;<\/h5>\n<ol>\n<li>Launch MobaXterm<\/li>\n<li>In the toolbar, click on &#8220;Session&#8221; button:<br \/>\n<img loading=\"lazy\" class=\"aligncenter\" src=\"\/tech\/files\/2020\/09\/snippet_1-636x360.png\" width=\"636\" height=\"360\" alt=\"Click on the Sessions icon in the top right corner of MobaXTerm Local Terminal to connect to SCC.\" \/><\/li>\n<li>Select &#8220;SSH&#8221; as the session type:<br \/>\n<img loading=\"lazy\" class=\"aligncenter\" src=\"\/tech\/files\/2020\/09\/snippet_2-636x428.png\" width=\"636\" height=\"428\" alt=\"The top toolbar has an option to select &quot;SSH&quot; as the session type from the top right corner.\" \/><\/li>\n<li>Specify &#8220;scc1.bu.edu&#8221; as the remote host and click &#8220;OK&#8221;:<br \/>\n<img loading=\"lazy\" class=\"aligncenter\" src=\"\/tech\/files\/2020\/09\/snippet_3-636x428.png\" width=\"636\" height=\"428\" alt=\"Below the toolbar, locate the &quot;Basic SSH setting&quot; field box. Beside &quot;Remote Host,&quot; input &quot;scc1.bu.edu.&quot; Click the left bottom &quot;OK&quot; button to proceed..\" \/><\/li>\n<li>Your connection will be saved on the left sidebar, so the next time you can start your session by clicking the &#8220;scc1.bu.edu [SSH]&#8221; link.<br \/>\n<img loading=\"lazy\" class=\"aligncenter\" src=\"\/tech\/files\/2020\/09\/snippet_4-1-636x365.png\" width=\"636\" height=\"365\" alt=\"Begin your session by clicking the &quot;scc1.bu.edu [SSH]&quot; link located at the top of the left side panel.\" \/><\/li>\n<li>In the terminal window you will get a prompt to enter your BU login information and password <i>(Note that the characters in your password will not be displayed when you type them as a security precaution)<\/i>:<\/li>\n<li>You may be prompted to complete the <a href=\"https:\/\/www.bu.edu\/tech\/support\/research\/system-usage\/connect-scc\/access-and-security\/two-factor\/\">Duo two-factor authentication<\/a>. Either type in the passcode or type in a number that corresponds to an authentication option listed:<br \/>\n<img loading=\"lazy\" class=\"aligncenter\" src=\"\/tech\/files\/2020\/09\/snippet_5-636x365.png\" width=\"636\" height=\"365\" alt=\"Input your BU login information and password via the command line in the black terminal window.\" \/><\/li>\n<li>If the connection is successful, the BU header output will be visible, like the one shown below:<br \/>\n<img loading=\"lazy\" class=\"aligncenter\" src=\"\/tech\/files\/2020\/09\/snippet_6-636x365.png\" width=\"636\" height=\"365\" alt=\"The BU header output will appear on the screen, stating &quot;scc1.bu.edu. Click on help or visit our website for more details.&quot;\" \/><\/li>\n<li>You can edit, delete, and move sessions by right clicking on them in the left MobaXterm sidebar.<\/li>\n<\/ol>\n<h5>Connect by MobaXTerm Local Terminal<\/h5>\n<ol>\n<li>Launch MobaXterm<\/li>\n<li>Click on the &#8220;+&#8221; symbol to open a new MobaXTerm Local Terminal.<img loading=\"lazy\" src=\"\/tech\/files\/2021\/08\/mobaxterm_local_terminal-636x381.png\" alt=\"The MobaXTerm Local Terminal icon is positioned below the top toolbar, slightly towards the right-hand side.\" class=\"alignnone wp-image-136560 size-medium\" width=\"636\" height=\"381\" srcset=\"https:\/\/www.bu.edu\/tech\/files\/2021\/08\/mobaxterm_local_terminal-636x381.png 636w, https:\/\/www.bu.edu\/tech\/files\/2021\/08\/mobaxterm_local_terminal-1024x614.png 1024w, https:\/\/www.bu.edu\/tech\/files\/2021\/08\/mobaxterm_local_terminal-768x460.png 768w, https:\/\/www.bu.edu\/tech\/files\/2021\/08\/mobaxterm_local_terminal.png 1138w\" sizes=\"(max-width: 636px) 100vw, 636px\" \/><\/li>\n<li>In the terminal type in the ssh commmand and include &#8220;-o PasswordAuthentication=no&#8221; option so that Duo two-factor authentication will work.\n<pre class=\"code-block\"><code><span class=\"command\">ssh<\/span> <span class=\"placeholder\">your_login_name<\/span>@scc1.bu.edu <span class=\"command\">-o PasswordAuthentication=no<\/span>\r\n<\/code><\/pre>\n<\/li>\n<li>Enter your BU Kerberos password when prompted. <i>Note that the characters in your password will not be displayed when you type them as a security precaution.<\/i><\/li>\n<li>You may be prompted to complete the <a href=\"https:\/\/www.bu.edu\/tech\/support\/research\/system-usage\/connect-scc\/access-and-security\/two-factor\/\">Duo two-factor authentication<\/a>. Either type in the passcode or type in a number that corresponds to an authentication option listed.<\/li>\n<li>If the connection is successful, the BU header output will be visible.<\/li>\n<li>When finished using the connection, type <code><span class=\"command\">exit<\/span><\/code> to close the session.<\/li>\n<\/ol>\n<\/div>\n<p><!-- END WINDOWS --><\/p>\n<div id=\"apple\">\n<h2>Connecting to the SCC from Apple OS X<\/h2>\n<p>The Secure SHell (SSH) is built into the Apple OS X operating system. To connect to the SCC, we will leverage this utility using the Terminal application.<\/p>\n<h4>Using Terminal to Connect to the SCC<\/h4>\n<ol>\n<li>Open the <b>Terminal<\/b> application, which is found in Applications &gt;&gt; Utilities &gt;&gt; Terminal. Alternatively, press <b>&lt;command&gt;<\/b> and <b>&lt;space&gt;<\/b> simultaneously to open Spotlight, search for Terminal and press <b>&lt;return&gt;<\/b>.<\/li>\n<li>In the terminal, type <code class=\"inline-block\"><span class=\"command\">ssh<\/span> <span class=\"placeholder\">username<\/span>@scc1.bu.edu<\/code>.<br \/>\n<img loading=\"lazy\" src=\"\/tech\/files\/2021\/07\/terminal1.png\" width=\"1182\" height=\"759\" class=\"alignnone\" alt=\"Navigate to the Terminal and type &quot;ssh username@scc1.bu.edu&quot;  next to command line that begins with dhcp-admin to connect to the specified server.\" \/><br \/>\nEnter your BU Kerberos password when requested. <i>Note that the characters in your password will not be displayed when you type them as a security precaution.<\/i> You will also be asked to use <a href=\"https:\/\/www.bu.edu\/tech\/support\/research\/system-usage\/connect-scc\/access-and-security\/two-factor\/\">Duo two-factor authentication<\/a>.<\/li>\n<li>You should now be connected to the SCC and see a window similar to this:<br \/>\n<img loading=\"lazy\" src=\"\/tech\/files\/2021\/07\/terminal2.png\" width=\"600\" height=\"758\" class=\"alignnone\" alt=\"Example of terminal window to input password and username. \" \/><\/li>\n<li>Type <code><span class=\"command\">exit<\/span><\/code> in the terminal when you are done working on the SCC.<\/li>\n<\/ol>\n<\/div>\n<p><!-- END APPLE --><\/p>\n<p><!-- Linux --><\/p>\n<div id=\"linux\">\n<h2>Connecting to the SCC from Linux<\/h2>\n<p>The Secure SHell (SSH) is built into the Linux operating system. To connect to the SCC, we will leverage this utility using the Terminal application.<\/p>\n<h4>Connecting to the SCC<\/h4>\n<ol>\n<li>Open a Terminal. This can be done by opening the terminal application in Systems &gt;&gt; Accessories &gt;&gt; Terminal or by using the hot-key Ctrl + Alt + T<\/li>\n<li>Use <code><span class=\"command\">ssh<\/span><\/code> to connect to the SCC with your login credentials, using a command similar to this example:\n<pre class=\"code-block\"><code class=\"code-block\"><span class=\"prompt\"><span class=\"placeholder\">your_local_machine<\/span>%<\/span> <span class=\"command\">ssh<\/span> <span class=\"placeholder\">yourBULoginName<\/span>@scc1.bu.edu<\/code><\/pre>\n<\/li>\n<li>Enter your BU Kerberos password when prompted. <i>Note that the characters in your password will not be displayed when you type them as a security precaution.<\/i><\/li>\n<li>You may be prompted to complete the <a href=\"https:\/\/www.bu.edu\/tech\/support\/research\/system-usage\/connect-scc\/access-and-security\/two-factor\/\">Duo two-factor authentication<\/a>. Either type in the passcode or type in a number that corresponds to an authentication option listed.<\/li>\n<li>When finished using the connection, type <code><span class=\"command\">exit<\/span><\/code> to close the session.<\/li>\n<\/ol>\n<\/div>\n<p><!-- END LINUX --><\/p>\n<div id=\"backtotop\"><a href=\"#top\">Back to top<\/a><\/div>\n<p><script type=\"text\/javascript\">\r\nfunction show_os(os){\r\nif (os == \"windows\"){\r\ndocument.getElementById('windows').style.display = 'block';\r\ndocument.getElementById('apple').style.display = 'none';\r\ndocument.getElementById('linux').style.display = 'none';\r\ndocument.getElementById('backtotop').style.display = 'block';\r\n}\r\nelse if (os == \"apple\"){\r\ndocument.getElementById('windows').style.display = 'none';\r\ndocument.getElementById('apple').style.display = 'block';\r\ndocument.getElementById('linux').style.display = 'none';\r\ndocument.getElementById('backtotop').style.display = 'block';\r\n}\r\nelse if (os == \"linux\"){\r\ndocument.getElementById('windows').style.display = 'none';\r\ndocument.getElementById('apple').style.display = 'none';\r\ndocument.getElementById('linux').style.display = 'block';\r\ndocument.getElementById('backtotop').style.display = 'block';\r\n}\r\nelse{\r\ndocument.getElementById('windows').style.display = 'none';\r\ndocument.getElementById('apple').style.display = 'none';\r\ndocument.getElementById('linux').style.display = 'none';\r\ndocument.getElementById('backtotop').style.display = 'none';\r\n}\r\n}\r\n<\/script><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Overview One method of connecting to the Shared Computing Cluster (SCC) from your local computer is to use an SSH (Secure SHell) client. This page provides a list of SSH clients available by Operating System and general instructions on how to use them to connect to the SCC. For using graphical user interface (GUI) based&#8230;<\/p>\n","protected":false},"author":1692,"featured_media":0,"parent":137911,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/137917"}],"collection":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/users\/1692"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/comments?post=137917"}],"version-history":[{"count":12,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/137917\/revisions"}],"predecessor-version":[{"id":144371,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/137917\/revisions\/144371"}],"up":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/137911"}],"wp:attachment":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/media?parent=137917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}