{"id":333,"date":"2017-11-03T16:47:32","date_gmt":"2017-11-03T14:47:32","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=333\/"},"modified":"2022-05-18T15:00:23","modified_gmt":"2022-05-18T12:00:23","slug":"access-server-ssh","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/access-server-ssh\/","title":{"rendered":"How to Access a Server via SSH?"},"content":{"rendered":"<p>The easiest way to access a server via SSH is by downloading an SSH client such as <a href=\"https:\/\/www.putty.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">PuTTY<\/a>. Once you download and start it you will see the following window.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-334 size-full\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2017\/10\/access-server-with-putty.png\" alt=\"How to Access a Server via SSH?\" width=\"516\" height=\"498\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2017\/10\/access-server-with-putty.png 516w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2017\/10\/access-server-with-putty-300x290.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/p>\n<p>You need to fill in the fields and click on the button\u00a0<strong>Open<\/strong>. Fill in the fields as described below.<\/p>\n<p><strong>Host Name (or IP address)<\/strong> &#8211; enter the IP address of your server in this field. It&#8217;s always best to connect using an IP address to avoid connection issues due to DNS problems.<\/p>\n<p><strong>Port<\/strong> &#8211; here you need to enter the SSH port. The default one is 22 but you should never leave your server to use the default SSH port. All brute force attacks happen on that port and you will avoid many attacks by using a custom SSH port. All <a href=\"https:\/\/www.scalahosting.com\/cloud-vps-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">ScalaHosting servers<\/a> use a custom port for SSH.<\/p>\n<p><strong>Connection type<\/strong> &#8211; leave this to SSH since you want to access a server via SSH.<\/p>\n<p><strong>Saved sessions<\/strong> (optional) &#8211; if you are going to connect often to your server via SSH you may want to save the configuration so that you don&#8217;t have to remember the IP address and enter it every time you want to connect. Enter a name which will be descriptive enough for you to remember which server belongs to that configuration. If you have many servers the name you will enter is important so you can easily remember which server corresponds to the description you entered. To save the session just click on the\u00a0<strong>Save<\/strong> button after you filled in the &#8220;Saved Sessions&#8221; field.<\/p>\n<p>The\u00a0 only thing that remains is to click on the\u00a0<strong>Open<\/strong> button to initiate the SSH session. You will be asked to enter a username and a password to authenticate. If you enter them correctly you will get to your SSH console prompt where you can start executing commands.<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-335 aligncenter\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2017\/10\/putty-authentication.jpg\" alt=\"How to Access a Server via SSH?\" width=\"675\" height=\"424\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2017\/10\/putty-authentication.jpg 675w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2017\/10\/putty-authentication-300x188.jpg 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/p>\n<p>Now it&#8217;s time to learn some shell commands and learn how to manage your server via SSH.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The easiest way to access a server via SSH is by downloading an SSH client such as PuTTY. Once you download and start it you will see the following window. You need to fill in the fields and click on the button\u00a0Open. Fill in the fields as described below. Host Name (or IP address) &#8211; [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[27],"tags":[63],"class_list":["post-333","post","type-post","status-publish","format-standard","hentry","category-vps-hosting","tag-access-server-ssh"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/comments?post=333"}],"version-history":[{"count":10,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/333\/revisions"}],"predecessor-version":[{"id":4516,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/333\/revisions\/4516"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}