{"id":14094,"date":"2024-09-26T12:59:18","date_gmt":"2024-09-26T12:59:18","guid":{"rendered":"https:\/\/truehost.com\/support\/?post_type=docs&#038;p=14094"},"modified":"2024-10-07T08:59:36","modified_gmt":"2024-10-07T08:59:36","password":"","slug":"how-to-access-a-server-via-ssh-terminal","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-access-a-server-via-ssh-terminal\/","title":{"rendered":"How to Access  A Server via SSH\/Terminal"},"content":{"rendered":"\n<p>SSH (Secure Shell) is a secure way to access a server remotely. Here&#8217;s a quick guide on how to do that, using the IP <code>178.32.214.84<\/code> as an example.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-vivid-cyan-blue-color has-text-color has-link-color wp-elements-681480f100a0b76561ca7d0ed7227d19\"><strong>Prerequisites for SSH Access<\/strong><\/h3>\n\n\n\n<p>To access a server via SSH, you must ensure the following:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>SSH Service is Enabled on the Server<\/strong>: SSH must be running on the server. Most Linux servers come with SSH enabled by default.<\/li>\n\n\n\n<li><strong>Correct IP Address<\/strong>: You need the correct server IP address. In this guide, we are using <code>178.32.214.84<\/code> as an example.<\/li>\n\n\n\n<li><strong>Username<\/strong>: You must have the username for the account you wish to access on the server.<\/li>\n\n\n\n<li><strong>Authentication Method<\/strong>: You must have either:\n<ul class=\"wp-block-list\">\n<li>A <strong>password<\/strong> for the username (password authentication), or<\/li>\n\n\n\n<li>An <strong>SSH key pair<\/strong> (private and public keys) if using key-based authentication (preferred for security).<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Port<\/strong>: By default, SSH uses port 22. If the server is configured to use a different port, you\u2019ll need that information.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading has-vivid-cyan-blue-color has-text-color has-link-color wp-elements-ff34f581369975e49a1b49a4290659f2\"><strong>Method 1: Access Using Password Authentication<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open Terminal<\/strong>:\n<ul class=\"wp-block-list\">\n<li>On <strong>Linux<\/strong> and <strong>macOS<\/strong>, open the terminal directly.<\/li>\n\n\n\n<li>On <strong>Windows<\/strong>, you can use <strong>Windows Powershell<\/strong> or an SSH client like <strong><a href=\"https:\/\/www.putty.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">PuTTY<\/a><\/strong> or <a href=\"https:\/\/termius.com\/download\/windows\" target=\"_blank\" rel=\"noreferrer noopener\">Termius<\/a>.<br><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Run SSH Command<\/strong>: In the terminal, use the following command:<br><strong>ssh<code> username@178.32.214.84<\/code><\/strong><code> <\/code><br><br>Replace <code>username<\/code> with your actual server username and the IP with the actual server IP or hostname.<br>For example, if your username is <code>root<\/code>, the command would be: <code><strong>ssh root@178.32.214.84<\/strong><\/code><br><\/li>\n\n\n\n<li><strong>Enter Password<\/strong>: When prompted, type the password for the user and press Enter. After successfully entering the password, you will have access to the server.<br><\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"772\" height=\"891\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/ssh.png\" alt=\"\" class=\"wp-image-14095\" style=\"width:814px;height:auto\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/ssh.png 772w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/ssh-260x300.png 260w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/ssh-768x886.png 768w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading has-vivid-cyan-blue-color has-text-color has-link-color wp-elements-0e6bab390c2079081b26e603e3f2a266\"><strong>Method 2: Access Using SSH Key Pair<\/strong><\/h3>\n\n\n\n<p>SSH key authentication is more secure than using passwords. You need to have the private key file on your local machine.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Generate or Obtain SSH Keys<\/strong>: If you don&#8217;t already have an SSH key pair, you can generate one using: <code>ssh-keygen -t rsa -b 4096 <\/code><br>This will create a private key (<code>id_rsa<\/code>) and a public key (<code>id_rsa.pub<\/code>). You will need to place the public key on the server under the user&#8217;s <code>.ssh\/authorized_keys<\/code> file.<br><\/li>\n\n\n\n<li><strong>Use SSH with Key<\/strong>: Run the following command to connect using your private key:<br><code>ssh -i \/path\/to\/private-key username@178.32.214.84 <\/code><br><br>For example: <code>ssh -i ~\/.ssh\/id_rsa root@178.32.214.84<\/code><br><\/li>\n\n\n\n<li><strong>Enter Passphrase (if applicable)<\/strong>: If your private key is protected with a passphrase, you will be prompted to enter it. Once authenticated, you will be logged into the server.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Additional Options<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Specifying a Different Port<\/strong>: If SSH is running on a non-default port (other than 22), you can specify it with the <code>-p<\/code> flag:<br><code><strong>ssh -p 2222 username@178.32.214.84<\/strong><\/code><\/li>\n\n\n\n<li><strong>Logging Out<\/strong>: To end your session and log out of the server, simply type: <code><strong>exit<\/strong><\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Example Commands<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>SSH with password:<\/strong> <code>ssh root@178.32.214.84<\/code><\/li>\n\n\n\n<li><strong>SSH with key-based authentication:<\/strong> <code>ssh -i ~\/.ssh\/id_rsa root@178.32.214.84<\/code><\/li>\n\n\n\n<li><strong>SSH with a custom port:<\/strong> <code>ssh -p 2222 root@178.32.214.84<\/code><\/li>\n<\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SSH (Secure Shell) is a secure way to access a server remotely. Here&#8217;s a quick guide on how to do that, using the IP 178.32.214.84 as an example. Prerequisites for SSH Access To access a server via SSH, you must ensure the following: Method 1: Access Using Password Authentication Method 2: Access Using SSH Key [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[1820,1824,1880,1879,2128],"doc_tag":[],"class_list":["post-14094","docs","type-docs","status-publish","hentry","doc_category-cloud-servers-in-kenya","doc_category-dedicated-servers","doc_category-remote-access","doc_category-servers","doc_category-vps-servers"],"year_month":"2026-06","word_count":454,"total_views":"0","reactions":{"happy":"22","normal":"0","sad":"0"},"author_info":{"name":"Eugene","author_nicename":"eugene","author_url":"https:\/\/truehost.com\/support\/author\/eugene\/"},"doc_category_info":[{"term_name":"Cloud servers in Kenya","term_url":"https:\/\/truehost.com\/support\/docs-category\/cloud-servers-in-kenya\/"},{"term_name":"dedicated servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/dedicated-servers\/"},{"term_name":"remote access","term_url":"https:\/\/truehost.com\/support\/docs-category\/remote-access\/"},{"term_name":"Servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/servers\/"},{"term_name":"VPS-Servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/vps-servers\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Access A Server via SSH\/Terminal -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-access-a-server-via-ssh-terminal\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Access A Server via SSH\/Terminal -\" \/>\n<meta property=\"og:description\" content=\"SSH (Secure Shell) is a secure way to access a server remotely. Here&#8217;s a quick guide on how to do that, using the IP 178.32.214.84 as an example. Prerequisites for SSH Access To access a server via SSH, you must ensure the following: Method 1: Access Using Password Authentication Method 2: Access Using SSH Key [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-access-a-server-via-ssh-terminal\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-07T08:59:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/ssh.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-access-a-server-via-ssh-terminal\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-access-a-server-via-ssh-terminal\\\/\",\"name\":\"How to Access A Server via SSH\\\/Terminal -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-access-a-server-via-ssh-terminal\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-access-a-server-via-ssh-terminal\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/ssh.png\",\"datePublished\":\"2024-09-26T12:59:18+00:00\",\"dateModified\":\"2024-10-07T08:59:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-access-a-server-via-ssh-terminal\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-access-a-server-via-ssh-terminal\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-access-a-server-via-ssh-terminal\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/ssh.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/ssh.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-access-a-server-via-ssh-terminal\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Access A Server via SSH\\\/Terminal\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Access A Server via SSH\/Terminal -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-access-a-server-via-ssh-terminal\/","og_locale":"en_US","og_type":"article","og_title":"How to Access A Server via SSH\/Terminal -","og_description":"SSH (Secure Shell) is a secure way to access a server remotely. Here&#8217;s a quick guide on how to do that, using the IP 178.32.214.84 as an example. Prerequisites for SSH Access To access a server via SSH, you must ensure the following: Method 1: Access Using Password Authentication Method 2: Access Using SSH Key [&hellip;]","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-access-a-server-via-ssh-terminal\/","article_modified_time":"2024-10-07T08:59:36+00:00","og_image":[{"url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/ssh.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-access-a-server-via-ssh-terminal\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-access-a-server-via-ssh-terminal\/","name":"How to Access A Server via SSH\/Terminal -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-access-a-server-via-ssh-terminal\/#primaryimage"},"image":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-access-a-server-via-ssh-terminal\/#primaryimage"},"thumbnailUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/ssh.png","datePublished":"2024-09-26T12:59:18+00:00","dateModified":"2024-10-07T08:59:36+00:00","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-access-a-server-via-ssh-terminal\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/how-to-access-a-server-via-ssh-terminal\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-access-a-server-via-ssh-terminal\/#primaryimage","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/ssh.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/09\/ssh.png"},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-access-a-server-via-ssh-terminal\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Access A Server via SSH\/Terminal"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/14094","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=14094"}],"version-history":[{"count":2,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/14094\/revisions"}],"predecessor-version":[{"id":14549,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/14094\/revisions\/14549"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=14094"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=14094"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=14094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}