{"id":10788,"date":"2024-12-11T07:29:18","date_gmt":"2024-12-11T07:29:18","guid":{"rendered":"https:\/\/blog.trustedhosting.in\/?p=10788"},"modified":"2024-12-11T07:29:18","modified_gmt":"2024-12-11T07:29:18","slug":"how-to-connect-to-your-server-via-ssh","status":"publish","type":"post","link":"https:\/\/www.webystrata.com\/blog\/how-to-connect-to-your-server-via-ssh\/","title":{"rendered":"How to Connect to your server via SSH"},"content":{"rendered":"<h1><a href=\"https:\/\/www.trustedhosting.in\/cpanel-hosting.html\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-10791 size-full\" title=\"How to Connect to your server via SSH\" src=\"https:\/\/blog.trustedhosting.in\/wp-content\/uploads\/2024\/12\/21743696_6453204-scaled.jpg\" alt=\"How to Connect to your server via SSH\" width=\"2560\" height=\"1707\" srcset=\"https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2024\/12\/21743696_6453204-scaled.jpg 2560w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2024\/12\/21743696_6453204-300x200.jpg 300w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2024\/12\/21743696_6453204-1024x683.jpg 1024w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2024\/12\/21743696_6453204-768x512.jpg 768w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2024\/12\/21743696_6453204-1536x1024.jpg 1536w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2024\/12\/21743696_6453204-2048x1365.jpg 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/a><\/h1>\n<h1>How to Connect to your server via SSH<\/h1>\n<p>If you\u2019ve ordered a control <a href=\"https:\/\/www.trustedhosting.in\/cpanel-hosting.html\" target=\"_blank\" rel=\"noopener\">panel <\/a>with your Linux solution, then this will be the main way you interact with your server. Both Plesk and cPanel allow you to easily add domains and mailboxes, as well as other various things.<\/p>\n<p>The minute you find yourself wanting to do something outside the scope of your control <a href=\"https:\/\/www.trustedhosting.in\/cpanel-hosting.html\" target=\"_blank\" rel=\"noopener\">panel<\/a> however, you\u2019ll need a way of interacting with your server at a more base level.<\/p>\n<p>This is where SSH steps in. SSH is actually a protocol, a way of connecting to your server. This is already set up and working, so all you now need is a way of connecting to it.<\/p>\n<p>If you are using pretty much any operating system apart from Windows, there will already be an SSH client installed. This is accessible via your command prompt, usually known as terminal or console on differing operating systems. If this is the case, you can connect with the following command:<\/p>\n<p><code class=\"docutils literal notranslate\"><span class=\"pre\">ssh<\/span>\u00a0<span class=\"pre\">-p2020<\/span>\u00a0<span class=\"pre\">root@putYourIPHere<\/span><\/code><\/p>\n<p>This will then prompt you for a password, which is the root password sent to you when you first opened your account with UKFast.<\/p>\n<p>With Windows, the best way of connecting to SSH is probably via a program called PuTTY, available using the following installer: http:\/\/ninite.com\/putty\/ which automates the install somewhat. It\u2019s also always available from\u00a0the original PuTTY project site<\/p>\n<p>When opened, put your IP in the\u00a0<code class=\"docutils literal notranslate\"><span class=\"pre\">HostName<\/span><\/code>\u00a0field, enter the port as\u00a0<code class=\"docutils literal notranslate\"><span class=\"pre\">2020<\/span><\/code>\u00a0and press Open.<\/p>\n<p><a href=\"https:\/\/www.trustedhosting.in\/cpanel-hosting.html\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-10789 size-full\" title=\"How to Connect to your server via SSH\" src=\"https:\/\/blog.trustedhosting.in\/wp-content\/uploads\/2024\/12\/connecting1.png\" alt=\"How to Connect to your server via SSH\" width=\"466\" height=\"450\" srcset=\"https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2024\/12\/connecting1.png 466w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2024\/12\/connecting1-300x290.png 300w\" sizes=\"auto, (max-width: 466px) 100vw, 466px\" \/><\/a><\/p>\n<p>As before, your user name is root, and your password is the one provided to you when you opened your account (this can be resent if you like)<\/p>\n<p>Once logged in, this will provide you with a command line to execute your various commands.<\/p>\n<p>For further advice on what to do once you\u2019ve connected in this fashion, you could refer to our other documentation in the\u00a0<span class=\"doc\">Linux basics<\/span>\u00a0range. Alternatively, there are a multitude of resources out there on the internet.<\/p>\n<p>However, whilst using your server like this offers you the most powerful way of maintaining your setup, it also provides you with the most powerful way to destroy your setup.<\/p>\n<p>If you have any questions about the command you\u2019re about to run, please don\u2019t hesitate to contact our support staff, they\u2019ll be happy to advise you.<\/p>\n<section id=\"connecting-using-private-key\">\n<h2>Connecting using private key<\/h2>\n<p>In order to connect using a private key, you will have to set PuTTY to use this before you open a session. To do this, navigate to the \u201cConnection\u201d tab and expand the \u201cSSH\u201d section. Now click on \u201cAuth\u201d and you should be presented with the following page:<\/p>\n<p><a href=\"https:\/\/www.trustedhosting.in\/cpanel-hosting.html\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-10790 size-full\" title=\"How to Connect to your server via SSH\" src=\"https:\/\/blog.trustedhosting.in\/wp-content\/uploads\/2024\/12\/PuTTY1.png\" alt=\"How to Connect to your server via SSH\" width=\"294\" height=\"288\" \/><\/a><\/p>\n<p>Tell PuTTY where the private key is located on your computer by clicking \u201cBrowse\u2026\u201d and navigating to the folder where the key is located and opening the file.<\/p>\n<p>Now click \u201cOpen\u201d and the session should open using the private key as authentication.<\/p>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>How to Connect to your server via SSH If you\u2019ve ordered a control panel with your Linux solution, then this&hellip;<\/p>\n","protected":false},"author":1,"featured_media":10791,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-10788","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts\/10788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/comments?post=10788"}],"version-history":[{"count":3,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts\/10788\/revisions"}],"predecessor-version":[{"id":10794,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts\/10788\/revisions\/10794"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/media\/10791"}],"wp:attachment":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/media?parent=10788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/categories?post=10788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/tags?post=10788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}