{"id":1075,"date":"2026-08-04T12:39:33","date_gmt":"2026-08-04T16:39:33","guid":{"rendered":"https:\/\/www.bates.edu\/research-resources\/?page_id=1075"},"modified":"2026-09-01T10:06:26","modified_gmt":"2026-09-01T14:06:26","slug":"ssh-key-setup-quick-guide","status":"publish","type":"page","link":"https:\/\/www.bates.edu\/research-resources\/ssh-key-setup-quick-guide\/","title":{"rendered":"SSH Key Setup: Quick Guide"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You need to be on campus or connected to the network from off campus via the VPN to set up your SSH Key.&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. Generate a Modern SSH Key<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run this command on macOS, Linux, or Windows PowerShell:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:var(--colorGray_light)\" class=\"has-inline-color\">ssh-keygen -t ed25519 -a 100 -C username@bates.edu<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. Note where the key will be saved (for example,  \u201cUsers\/username\/.ssh\/id_ed25519\u201d).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Protect the Private Key:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Choose a strong passphrase when prompted.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Install Your Public Key on the Server (you need to be on campus or connected to leavitt via the VPN to complete this step):<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:var(--colorGray_light)\" class=\"has-inline-color\">ssh-copy-id -i ~\/.ssh\/id_ed25519.pub username@leavitt.bates.edu<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If prompted:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u201cAre you sure you want to continue connecting (yes\/no\/fingerprint)\u201d Enter: \u201cyes.\u201d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When prompted (for \u201c<a href=\"mailto:username@leavitt.bates.edu\">username@leavitt.bates.edu<\/a>\u2019s password\u201d) enter your Bates password.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4.\u00a0 Disconnect from VPN if off campus, and try to connect to leavitt, specifying port 222:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:var(--colorGray_light)\" class=\"has-inline-color\">ssh -p 222 <a href=\"mailto:username@leavitt.bates.edu\">username@leavitt.bates.edu<\/a><\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5. When prompted provide your passphrase from step 3 above.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You need to be on campus or connected to the network from&hellip;<\/p>\n","protected":false},"author":169,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_hide_ai_chatbot":false,"_ai_chatbot_style":"","associated_faculty":[],"_Page_Specific_Css":"","_bates_restrict_mod":false,"bates_author_byline_override":"","_hide_page_title":false,"_header_override":"","_template_width_override":"","_dimp_site_id":"","_dimp_override_contact":false,"_table_of_contents_display":false,"_table_of_contents_location":"","_table_of_contents_disableSticky":false,"_is_featured":false,"_sidebarChoice":"","footnotes":"","_bates_seo_meta_description":"","_bates_seo_block_robots":false,"_bates_seo_sharing_image_id":0,"_bates_seo_sharing_image_twitter_id":0,"_bates_seo_share_title":"","_bates_seo_canonical_overwrite":"","_bates_seo_twitter_template":""},"class_list":["post-1075","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.bates.edu\/research-resources\/wp-json\/wp\/v2\/pages\/1075","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bates.edu\/research-resources\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bates.edu\/research-resources\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bates.edu\/research-resources\/wp-json\/wp\/v2\/users\/169"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bates.edu\/research-resources\/wp-json\/wp\/v2\/comments?post=1075"}],"version-history":[{"count":4,"href":"https:\/\/www.bates.edu\/research-resources\/wp-json\/wp\/v2\/pages\/1075\/revisions"}],"predecessor-version":[{"id":1082,"href":"https:\/\/www.bates.edu\/research-resources\/wp-json\/wp\/v2\/pages\/1075\/revisions\/1082"}],"wp:attachment":[{"href":"https:\/\/www.bates.edu\/research-resources\/wp-json\/wp\/v2\/media?parent=1075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}