{"id":341,"date":"2007-09-03T19:12:32","date_gmt":"2007-09-03T19:12:32","guid":{"rendered":"https:\/\/bodhost.com\/kb\/\/web-hosting\/index.php\/2007\/09\/03\/how-to-ssh-a-server-or-ssh-server-access\/"},"modified":"2026-02-26T14:04:57","modified_gmt":"2026-02-26T14:04:57","slug":"how-to-ssh-a-server-or-ssh-server-access","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/how-to-ssh-a-server-or-ssh-server-access\/","title":{"rendered":"How to SSH a server or SSH Server Access"},"content":{"rendered":"<p><strong><\/strong><\/p>\r\n<h4 class=\"wp-block-heading\">What is SSH?<\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The Internet has developed the need for some secure methods of communication. One such method is Secure Shell (SSH) encryption. It is developed by SSH Communications Security Ltd., &#8220;Secure Shell&#8221; is a program to log into another computer on a network, execute commands on a remote machine, and move files from one machine to other. It provides strong authentication and secure communications over insecure channels. It is a replacement for rlogin, rsh, RCP, and rdist.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">SSH protects a network from attacks such as IP spoofing, IP source routing, and DNS spoofing. An attacker who has managed to take over a network can only force ssh to disconnect. He or she cannot playback the traffic or hijack the connection when encryption is enabled. This SSH uses one open and one secret key. In contrast to Kerberos, SSH does not use a central server for security. SSH uses port 22.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It is actually a suite of three utilities &#8211; slogin, ssh, and scp &#8211; these are secure versions of the earlier UNIX utilities, rlogin, rsh, and rcp. SSH commands are encrypted and secure in several ways. Both ends of the client\/server connection are authenticated using a digital certificate, and passwords are protected by being encrypted. SSH uses RSA public-key cryptography for both connection and authentication.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Starting a Server?<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Any SSH server can be run either by the regular user or by root. If it is launched by root, the server will listen in port 22 and it will accept both root and user login. Otherwise, it will listen in port 2222 and allow only user login.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">If you do not have root access to your device, the only option is to run the server as a normal user using port 2222 allowing only the user to log in. You can still use Sudo get root to become root.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Before starting the server, check which user you are currently<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">$ whoami<br \/>user<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">This can also seen from the character which seen just after the current path and before the edit area of the terminal\/console. For a normal user, it shows &#8220;$&#8221; and for root, it shows &#8220;#&#8221;.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">When you finish with passwords and\/or keys, start the server<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">\/var\/lib\/install\/etc\/init.d\/dropbear-server start<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It depends on which user you started the server with, it prints out for the normal user<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">If I will be running as a regular user, I will listen to port 2222<br \/>Starting any SSH server: any.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">or for the root just<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Starting any SSH server: any.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">You can check that the SSH server is running<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">$ ps ax | grep any<br \/>209 5 user\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 584 S\u00a0\u00a0 \/var\/lib\/install\/usr\/sbin\/any -d \/var\/<br \/>286 0 user\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 360 S\u00a0\u00a0 grep any<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">In the second column, it seen that the server running as an ordinary user.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Starting and stopping server automatically?<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">For becoming a root and create a symlink that will make any SSH server start and stop automatically<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">$ sudo gainroot<br \/>(output supressed)<br \/># ln -s \/var\/lib\/install\/etc\/init.d\/any-server \/etc\/rc2.d\/S20any-server<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Security warning for the SSH server<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">If anyone is hosting your SSH server to the public, remember to disable the root access. This is very important! because lots of \u201chacker\u201ds are running brute force tools and these tools are trying to scan the open ssh port and brute force to get root access. If your root password is somehow easy to guess, or you are not lucky enough, your server will \u201chacked\u201d and become an unsecured machine.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">This is how you can disable the root access?<br \/>Edit \/etc\/ssh\/sshd_config, search for PermitRootLogin and change the yes to no. Then restart ssh server<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">sudo \/etc\/init.d\/ssh restart<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Do not take the risk to enable root access, unless you are sure what are you doing. If you need root access, consider using sudo.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>How to hide your Password without Public Keys:<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">If you do not want to type your password at the command line for each operation and don&#8217;t have the ability to put your public key on the SSH server are as follows:<\/p>\r\n\r\n\r\n\r\n<ol>\r\n<li>Create the following one-line Perl script and save it as my_ssh_cvs.pl<br \/>system(&#8220;plink.exe&#8221;, &#8220;-ssh&#8221;, &#8220;-pw&#8221;, &#8220;YOURPASSWORD&#8221;, @ARGV);<\/li>\r\n<li>Now use PERL2EXE or ActiveState&#8217;s perldevkit (perlapp -f my_ssh_cvs.pl) to create an executable from the script, e.g., my_ssh_cvs.exe<\/li>\r\n<li>Delete my_ssh_cvs.pl<\/li>\r\n<li>Run WinCVS<\/li>\r\n<li>Select Admin\/Preferences&#8230;<\/li>\r\n<li>Click Settings&#8230; (for the ssh protocol)<\/li>\r\n<li>Click &#8220;If ssh is not in the PATH&#8221; and enter my_ssh_cvs.exe<\/li>\r\n<li>For &#8220;additional SSH options&#8221;, leave it blank<\/li>\r\n<\/ol>\r\n<p class=\"wp-block-paragraph\"><strong>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>What is SSH? The Internet has developed the need for some secure methods of communication. One such method is Secure Shell (SSH) encryption. It is developed by SSH Communications Security&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/how-to-ssh-a-server-or-ssh-server-access\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[297],"tags":[1040],"class_list":["post-341","post","type-post","status-publish","format-standard","hentry","category-faq","tag-how-to-ssh-a-server-access"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to SSH a server or SSH Server Access<\/title>\n<meta name=\"description\" content=\"In this article you will learn How to SSH a server or SSH Server Access. for more details visit bodhost.com\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/kb\/how-to-ssh-a-server-or-ssh-server-access\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to SSH a server or SSH Server Access\" \/>\n<meta property=\"og:description\" content=\"In this article you will learn How to SSH a server or SSH Server Access. for more details visit bodhost.com\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/how-to-ssh-a-server-or-ssh-server-access\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2007-09-03T19:12:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:04:57+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-ssh-a-server-or-ssh-server-access\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-ssh-a-server-or-ssh-server-access\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/c48414ad1536cea20e85282b0737a9f9\"},\"headline\":\"How to SSH a server or SSH Server Access\",\"datePublished\":\"2007-09-03T19:12:32+00:00\",\"dateModified\":\"2026-02-26T14:04:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-ssh-a-server-or-ssh-server-access\\\/\"},\"wordCount\":769,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"keywords\":[\"How to SSH a server access\"],\"articleSection\":[\"FAQs\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-ssh-a-server-or-ssh-server-access\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-ssh-a-server-or-ssh-server-access\\\/\",\"name\":\"How to SSH a server or SSH Server Access\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2007-09-03T19:12:32+00:00\",\"dateModified\":\"2026-02-26T14:04:57+00:00\",\"description\":\"In this article you will learn How to SSH a server or SSH Server Access. for more details visit bodhost.com\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-ssh-a-server-or-ssh-server-access\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-ssh-a-server-or-ssh-server-access\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-ssh-a-server-or-ssh-server-access\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"FAQs\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/faq\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to SSH a server or SSH Server Access\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/c48414ad1536cea20e85282b0737a9f9\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to SSH a server or SSH Server Access","description":"In this article you will learn How to SSH a server or SSH Server Access. for more details visit bodhost.com","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:\/\/www.bodhost.com\/kb\/how-to-ssh-a-server-or-ssh-server-access\/","og_locale":"en_US","og_type":"article","og_title":"How to SSH a server or SSH Server Access","og_description":"In this article you will learn How to SSH a server or SSH Server Access. for more details visit bodhost.com","og_url":"https:\/\/www.bodhost.com\/kb\/how-to-ssh-a-server-or-ssh-server-access\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2007-09-03T19:12:32+00:00","article_modified_time":"2026-02-26T14:04:57+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/how-to-ssh-a-server-or-ssh-server-access\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-ssh-a-server-or-ssh-server-access\/"},"author":{"name":"admin","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/c48414ad1536cea20e85282b0737a9f9"},"headline":"How to SSH a server or SSH Server Access","datePublished":"2007-09-03T19:12:32+00:00","dateModified":"2026-02-26T14:04:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-ssh-a-server-or-ssh-server-access\/"},"wordCount":769,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"keywords":["How to SSH a server access"],"articleSection":["FAQs"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/how-to-ssh-a-server-or-ssh-server-access\/","url":"https:\/\/www.bodhost.com\/kb\/how-to-ssh-a-server-or-ssh-server-access\/","name":"How to SSH a server or SSH Server Access","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"datePublished":"2007-09-03T19:12:32+00:00","dateModified":"2026-02-26T14:04:57+00:00","description":"In this article you will learn How to SSH a server or SSH Server Access. for more details visit bodhost.com","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-ssh-a-server-or-ssh-server-access\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/how-to-ssh-a-server-or-ssh-server-access\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/how-to-ssh-a-server-or-ssh-server-access\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"FAQs","item":"https:\/\/www.bodhost.com\/kb\/category\/faq\/"},{"@type":"ListItem","position":2,"name":"How to SSH a server or SSH Server Access"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/c48414ad1536cea20e85282b0737a9f9","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.bodhost.com\/kb\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=341"}],"version-history":[{"count":4,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/341\/revisions"}],"predecessor-version":[{"id":12605,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/341\/revisions\/12605"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}