{"id":237,"date":"2024-07-09T00:12:00","date_gmt":"2024-07-09T00:12:00","guid":{"rendered":"https:\/\/www.prolimehost.com\/blogs\/?p=237"},"modified":"2024-07-09T17:55:57","modified_gmt":"2024-07-09T17:55:57","slug":"all-about-ssh-for-linux-dedicated-servers","status":"publish","type":"post","link":"https:\/\/www.prolimehost.com\/blogs\/all-about-ssh-for-linux-dedicated-servers\/","title":{"rendered":"All About SSH for Linux Dedicated Servers"},"content":{"rendered":"<p><a href=\"https:\/\/www.prolimehost.com\/wp-content\/uploads\/sites\/4\/2015\/11\/SSH-Lock.jpg\"><img decoding=\"async\" class=\"aligncenter wp-image-238\" title=\"Secure SHell SSH\" src=\"https:\/\/www.prolimehost.com\/wp-content\/uploads\/sites\/4\/2015\/11\/SSH-Lock.jpg\" alt=\"Secure SHell SSH\" width=\"601\" height=\"536\" \/><\/a>SSH is an acronym for SecureSHell. It was essentially developed to provide security when accessing another computer\/server remotely. Older telnet programs allowed everything sent or received to be visible, so outsiders could literally \u201csniff\u201d that connection in-between (using programs like Wireshark) to see your email, commands, username and password. SSH encrypts sessions, plus provides improved authentication facilities. Some of its features include X session forwarding, secure file transfer and port forwarding.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.prolimehost.com\/blogs\/all-about-ssh-for-linux-dedicated-servers\/#SSH_can_use_more_than_one_form_of_encryption_from_512_bits_and_up\" >SSH can use more than one form of encryption, from 512 bits and up<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.prolimehost.com\/blogs\/all-about-ssh-for-linux-dedicated-servers\/#Passphrases\" >Passphrases<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.prolimehost.com\/blogs\/all-about-ssh-for-linux-dedicated-servers\/#Private_and_public_keys\" >Private and public keys<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.prolimehost.com\/blogs\/all-about-ssh-for-linux-dedicated-servers\/#Running_Commands_Over_SSH_and_exiting\" >Running Commands Over SSH and exiting<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.prolimehost.com\/blogs\/all-about-ssh-for-linux-dedicated-servers\/#SCP\" >SCP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.prolimehost.com\/blogs\/all-about-ssh-for-linux-dedicated-servers\/#What_if_your_SSH_session_dies_of_inactivity\" >What if your SSH session dies of inactivity?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.prolimehost.com\/blogs\/all-about-ssh-for-linux-dedicated-servers\/#How_to_end_you_SSH_session\" >How to end you SSH session<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.prolimehost.com\/blogs\/all-about-ssh-for-linux-dedicated-servers\/#BROUGHT_TO_YOU_BY_PROLIMEHOST\" >BROUGHT TO YOU BY PROLIMEHOST<\/a><ul class='ez-toc-list-level-5' ><li class='ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.prolimehost.com\/blogs\/all-about-ssh-for-linux-dedicated-servers\/#VPS_SERVICES_LIGHTNING_FAST_SSD_VIRTUAL_SERVERS\" >VPS SERVICES: LIGHTNING FAST SSD VIRTUAL SERVERS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.prolimehost.com\/blogs\/all-about-ssh-for-linux-dedicated-servers\/#DEDICATED_SERVERS_BACKED_BY_A_999_SLA_NETWORK_UPTIME_GUARANTEE\" >DEDICATED SERVERS: BACKED BY A 99.9% SLA NETWORK UPTIME GUARANTEE<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.prolimehost.com\/blogs\/all-about-ssh-for-linux-dedicated-servers\/#ASIA_OPTIMIZED_SERVERS_IMPROVING_CONNECTION_SPEED_AND_QUALITY\" >ASIA OPTIMIZED SERVERS: IMPROVING CONNECTION SPEED AND QUALITY<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"SSH_can_use_more_than_one_form_of_encryption_from_512_bits_and_up\"><\/span>SSH can use more than one form of encryption, from 512 bits and up<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>SSH includes ciphers like Triple DES, AES, CAST128 or Blowfish. By encrypting the data, it changes it so that unless outsiders have the key, it\u2019s hard to crack the code.<\/p>\n<p>When connecting to a remote machine, run \u2018SSH hostname\u2019 on your local computer, where that hostname is the hostname of the remote computer you\u2019re connecting with. Host validation is one of SSH\u2019s major features as it can help you detect DNS spoofing. If your host key verification fails, this should raise some red flags. Some items to consider would be:<\/p>\n<ul>\n<li>Has the server been upgraded?<\/li>\n<li>Are using a dynamic IP address on your home computer?<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Passphrases\"><\/span>Passphrases<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>When setting up passphrases, use characters mixed with punctuation and numbers, making it harder to guess. An eight-character password has 5.25 times\u00a0less\u00a0combinations than a five-word passphrase. Just don\u2019t use any famous phrases or quotes as these can be uncovered by a brute force program.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Private_and_public_keys\"><\/span>Private and public keys<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>When generating a key, <a href=\"https:\/\/www.ssh.com\/\" target=\"_blank\" rel=\"nofollow noopener\">SSH<\/a> actually generates two keys, a public key and a private key. The private key should always remain on your local computer. The public key should always stay on the server you want to connect to. The public key cannot be used to derive your private key, making it a secure connection. Your local SSH process asks for your passphrase, not the remote server. If you\u2019re using an SSH agent program, this will eliminate the need to enter the passphrase, as that will be done automatically once it\u2019s set up.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Running_Commands_Over_SSH_and_exiting\"><\/span>Running Commands Over SSH and exiting<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>If you simply want to run a command and exit, then put the command you wish to run at the end of your SSH connection command.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"SCP\"><\/span>SCP<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>If you want to securely transfer files from your local computer to a server (remote host), or vice versa, you can use a program like SCP that uses the SSH protocol.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_if_your_SSH_session_dies_of_inactivity\"><\/span>What if your SSH session dies of inactivity?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>SSH sessions can die after so many minutes of inactivity, sometimes because of a firewall configuration between you and the Internet that was designed to only keep stateful connections in memory for specific lengths of time. Fortunately, there are workarounds like using a TCPKeepAlive directive.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_to_end_you_SSH_session\"><\/span>How to end you SSH session<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You can end your SSH session typing entering exit, logout or simply pressing Ctrl-d. These usually exit the shell, logging you off. However, if you lose connectivity and have no way of ending your shell session, simply type return twice and then the tilde followed by a period. This should terminate the connection from the local side rather than from the server.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" class=\"wp-image-5482 aligncenter\" src=\"https:\/\/www.prolimehost.com\/wp-content\/uploads\/sites\/4\/image.png\" alt=\"\" width=\"400\" height=\"80\" srcset=\"https:\/\/www.prolimehost.com\/blogs\/wp-content\/uploads\/sites\/4\/image.png 400w, https:\/\/www.prolimehost.com\/blogs\/wp-content\/uploads\/sites\/4\/image-300x60.png 300w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/figure>\n<\/div>\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"BROUGHT_TO_YOU_BY_PROLIMEHOST\"><\/span>BROUGHT TO YOU BY PROLIMEHOST<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>We\u2019ve been in the web hosting industry for over a decade, helping hundreds of clients succeed in what they do best and that\u2019s running their business. We specialize in Virtual Private Servers (VPS) and dedicated servers, with data centers in Los Angeles, Denver &amp; Singapore.<\/p>\n<h5 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"VPS_SERVICES_LIGHTNING_FAST_SSD_VIRTUAL_SERVERS\"><\/span>VPS SERVICES: LIGHTNING FAST SSD VIRTUAL SERVERS<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>Our\u00a0<a href=\"https:\/\/www.prolimehost.com\/ssd-vps-server\/\">Virtual Private Servers<\/a>\u00a0all feature high performance Xeon processors and SSD storage in a RAID10 configuration to optimize your server\u2019s performance, which dramatically enhances visitor experiences on your site.<\/p>\n<p>That speed is backed by unparalleled 24\/7 support, featuring both outstanding response AND resolution times to maximize your uptime.<\/p>\n<p><strong><em>Now is the time to join the ProlimeHost virtual private server revolution.<\/em><\/strong><\/p>\n<h5 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"DEDICATED_SERVERS_BACKED_BY_A_999_SLA_NETWORK_UPTIME_GUARANTEE\"><\/span>DEDICATED SERVERS: BACKED BY A 99.9% SLA NETWORK UPTIME GUARANTEE<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>We only use enterprise-class hardware in our\u00a0<a href=\"https:\/\/www.prolimehost.com\/los-angeles-dedicated-servers\/\">dedicated servers<\/a>\u00a0and offer a four (4) hour hardware replacement. Throw in IPMI for remote management, support for public and private networks, free operating system (OS) re-installs, and SATA, SAS &amp; SSD (including NVMe) storage. Call 1-877-477-9454 or\u00a0<a href=\"https:\/\/www.prolimehost.com\/contact\/\">contact us<\/a>. For everything from gaming servers to\u00a0<a href=\"https:\/\/www.prolimehost.com\/discounted-dedicated-server-deals\/\">cheap dedicated servers<\/a>, we\u2019re here to help.<\/p>\n<h5 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"ASIA_OPTIMIZED_SERVERS_IMPROVING_CONNECTION_SPEED_AND_QUALITY\"><\/span>ASIA OPTIMIZED SERVERS: IMPROVING CONNECTION SPEED AND QUALITY<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>Procuring an Asia optimized server improves the connection speed and quality between the server and the users in Asia or China. This can reduce latency, packet loss, jitter, and bandwidth issues that can affect the performance and reliability of the server and the applications hosted on it. For more information, please call 1-877-477-9454 or\u00a0<a href=\"https:\/\/www.prolimehost.com\/contact\/\">contact us<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"SSH is an acronym for SecureSHell. It was essentially developed to provide security when accessing another computer\/server remotely.&hellip;","protected":false},"author":3,"featured_media":238,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[10],"tags":[120,123,43,24,107,113,21,139,23,22,106,33],"class_list":["post-237","post","type-post","status-publish","format-standard","has-post-thumbnail","category-tutorials-tips","tag-asia-optimized","tag-china-optimized","tag-dedicated-server","tag-dedicated-servers","tag-dedicated-servers-usa","tag-gaming-servers","tag-linux","tag-prolimehost","tag-secure-shell","tag-ssh","tag-virtual-private-servers","tag-vps","cs-entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.prolimehost.com\/blogs\/wp-json\/wp\/v2\/posts\/237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.prolimehost.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.prolimehost.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.prolimehost.com\/blogs\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.prolimehost.com\/blogs\/wp-json\/wp\/v2\/comments?post=237"}],"version-history":[{"count":0,"href":"https:\/\/www.prolimehost.com\/blogs\/wp-json\/wp\/v2\/posts\/237\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.prolimehost.com\/blogs\/wp-json\/wp\/v2\/media\/238"}],"wp:attachment":[{"href":"https:\/\/www.prolimehost.com\/blogs\/wp-json\/wp\/v2\/media?parent=237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.prolimehost.com\/blogs\/wp-json\/wp\/v2\/categories?post=237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.prolimehost.com\/blogs\/wp-json\/wp\/v2\/tags?post=237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}