{"id":19729,"date":"2017-12-11T14:10:49","date_gmt":"2017-12-11T08:40:49","guid":{"rendered":"https:\/\/blog.resellerclub.com\/?p=19729"},"modified":"2026-05-13T13:50:28","modified_gmt":"2026-05-13T13:50:28","slug":"how-to-enable-ssh-in-ubuntu-linux","status":"publish","type":"post","link":"https:\/\/www.resellerclub.com\/blog\/how-to-enable-ssh-in-ubuntu-linux\/","title":{"rendered":"How to enable SSH in Ubuntu &#038; Linux"},"content":{"rendered":"<p>SSH or secure shell service in Ubuntu allows a safe remote access while logging in. It also allows other network communications within an organization. To understand how to enable SSH in Ubuntu and Linux and <a href=\"\/blog\/a-few-tips-on-how-to-use-ssh-like-a-pro\/\">use it like a pro,<\/a> let us first understand what is SSH, how important it is and how we can enable it in Ubuntu and Linux.<\/p>\n<p><strong>What is SSH?<\/strong><\/p>\n<p>SSH is Secure Shell Service, a secure way or channel to access your hosting remotely. By using SSH, we are able to sift through our hosting file structure. By using SSH you can perform a list of tasks. Some of them include:<\/p>\n<ul>\n<li>Live monitoring of log-files<\/li>\n<li>Enabling or disabling services for VPS or Dedicated customers<\/li>\n<li>Installing software to your account<\/li>\n<li>Managing MySQL databases<\/li>\n<\/ul>\n<p><strong>Advantages of Installing SSH:<\/strong><\/p>\n<ul>\n<li>Allows tunneling of protocols like FTP<\/li>\n<li>Allowing encryption of data so that malicious attackers are kept at bay<\/li>\n<li>Protecting IP source routing from malicious users<\/li>\n<li>Avoids DNS spoofing<\/li>\n<\/ul>\n<p><strong>How to enable SSH in Ubuntu and Linux<\/strong><\/p>\n<p><a href=\"https:\/\/www.ubuntu.com\/desktop\">Ubuntu is a Linux OS<\/a> that is available for community and professional support. Enabling SSH in<br \/>\nUbuntu will provide remote access login along with other network communications. In order to enable SSH in Ubuntu, follow these steps:<\/p>\n<ol>\n<li><strong>Open terminal with Ctrl+Alt+Del <\/strong><br \/>\nLog into the Ubuntu server and run command studo apt-get install open ssh-server<br \/>\nOnce OpenSSH server is installed, make a copy of the default SSH configuration to restore your backup.<\/li>\n<li><strong> Configuration of SSH<\/strong>After installing SSH, you can enable the configuration by changing default port for security<br \/>\nreasons by disabling the \u201croot\u201d user login.In Order to update the default SSH port, open the <a href=\"https:\/\/www.ssh.com\/ssh\/config\/\">SSH configuration file<\/a> by running this command:<br \/>\nsudo nano \/etc\/ssh\/sshd_configIncase you don&#8217;t have nano ( text editor installed) run:sudo apt-get install nano -yAfter opening the file, find and change the following line from:<\/p>\n<p># Port 22 ( if it is your default or whichever may be in your case)<br \/>\nto<\/p>\n<p>Port 1337 (You can use a port number of your choice)<\/p>\n<p>Press Ctrl + W to save and close the file, then Y and press Enter to run.<\/p>\n<p>Now, restart SSH after some time and run this command:<\/p>\n<p>sudo service ssh restart<\/p>\n<p>With this you are all set to go. You can run SSH into your server by opening the terminal and using your user-id and password.<\/li>\n<\/ol>\n<p><strong>How to enable SSH in Linux<\/strong><\/p>\n<p>In order to enable SSH in Linux, follow these two simple steps:<\/p>\n<ol>\n<li><strong>Start by ensuring these configuration files to affirmative: <\/strong>Configuration file \/etc\/ssh\/sshd_config are set to yes:a) StrictModesb) Pubkey Authentication<\/li>\n<li><strong>Put SSH server daemon in running mode <\/strong><br \/>\nIn order to ensure that the SSH server is up and running in your Linux system, run the following commands:$ \/sbin\/service sshd status (to check if it is running)Incase the SSH server daemon sshd is not running, you can enable the daemon by-$ \/sbin\/service sshd start (to enable the daemon)<\/li>\n<\/ol>\n<p>In this manner, you will easily be enable SSH in Ubuntu and Linux. Hope these tips were helpful. Incase you have any doubts or feedback for us, feel free to comment. We will make sure that we resolve them for you.<\/p>\n<div class=\"fb-background-color\">\n\t\t\t  <div \n\t\t\t  \tclass = \"fb-comments\" \n\t\t\t  \tdata-href = \"https:\/\/www.resellerclub.com\/blog\/how-to-enable-ssh-in-ubuntu-linux\/\"\n\t\t\t  \tdata-numposts = \"10\"\n\t\t\t  \tdata-lazy = \"true\"\n\t\t\t\tdata-colorscheme = \"light\"\n\t\t\t\tdata-order-by = \"social\"\n\t\t\t\tdata-mobile=true>\n\t\t\t  <\/div><\/div>\n\t\t  <style>\n\t\t    .fb-background-color {\n\t\t\t\tbackground:  !important;\n\t\t\t}\n\t\t\t.fb_iframe_widget_fluid_desktop iframe {\n\t\t\t    width: 100% !important;\n\t\t\t}\n\t\t  <\/style>\n\t\t  ","protected":false},"excerpt":{"rendered":"<p>SSH or secure shell service in Ubuntu allows a safe remote access while logging in. It also allows other network communications within an organization. To understand how to enable SSH in Ubuntu and Linux and use it like a pro, let us first understand what is SSH, how important it is and how we can<\/p>\n","protected":false},"author":221,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1533,1523],"tags":[281,4877,5187],"hashtags":[],"class_list":{"0":"post-19729","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-tech","7":"category-development","8":"tag-linux","9":"tag-ssh","10":"tag-ubuntu"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to enable SSH in Ubuntu and Linux | ResellerClub Blog<\/title>\n<meta name=\"description\" content=\"Enable SSH on Ubuntu Linux with simple steps. Install OpenSSH, configure settings, start the SSH service, and securely connect to your server from anywhere.\" \/>\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.resellerclub.com\/blog\/how-to-enable-ssh-in-ubuntu-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to enable SSH in Ubuntu and Linux | ResellerClub Blog\" \/>\n<meta property=\"og:description\" content=\"Enable SSH on Ubuntu Linux with simple steps. Install OpenSSH, configure settings, start the SSH service, and securely connect to your server from anywhere.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.resellerclub.com\/blog\/how-to-enable-ssh-in-ubuntu-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"ResellerClub Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/profile.php?id=100005889763273\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-11T08:40:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-13T13:50:28+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aaron Chichioco\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.resellerclub.com\/blog\/#website\",\"url\":\"https:\/\/www.resellerclub.com\/blog\/\",\"name\":\"ResellerClub Blog\",\"description\":\"Web Hosting &amp; Domains\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.resellerclub.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.resellerclub.com\/blog\/how-to-enable-ssh-in-ubuntu-linux\/#webpage\",\"url\":\"https:\/\/www.resellerclub.com\/blog\/how-to-enable-ssh-in-ubuntu-linux\/\",\"name\":\"How to enable SSH in Ubuntu and Linux | ResellerClub Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.resellerclub.com\/blog\/#website\"},\"datePublished\":\"2017-12-11T08:40:49+00:00\",\"dateModified\":\"2026-05-13T13:50:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.resellerclub.com\/blog\/#\/schema\/person\/603c0522fab05e8b6cc873315a1e53ae\"},\"description\":\"Enable SSH on Ubuntu Linux with simple steps. Install OpenSSH, configure settings, start the SSH service, and securely connect to your server from anywhere.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.resellerclub.com\/blog\/how-to-enable-ssh-in-ubuntu-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.resellerclub.com\/blog\/how-to-enable-ssh-in-ubuntu-linux\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.resellerclub.com\/blog\/how-to-enable-ssh-in-ubuntu-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.resellerclub.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to enable SSH in Ubuntu &#038; Linux\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.resellerclub.com\/blog\/#\/schema\/person\/603c0522fab05e8b6cc873315a1e53ae\",\"name\":\"Aaron Chichioco\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.resellerclub.com\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/99ad79c7a82e4ad4d00a7dc6aaec27b2bae3f6f87019bfedb6a7781d49c1bac8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/99ad79c7a82e4ad4d00a7dc6aaec27b2bae3f6f87019bfedb6a7781d49c1bac8?s=96&d=mm&r=g\",\"caption\":\"Aaron Chichioco\"},\"description\":\"Aaron Chichioco is a digital PR \/ business columnist. He has a vast experience in overseeing daily operations of several online businesses since 2011. He is currently employed with grit.ph. You can follow Aaron on twitter at @Aaron_Chichioco\",\"url\":\"https:\/\/www.resellerclub.com\/blog\/author\/aaron-c\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to enable SSH in Ubuntu and Linux | ResellerClub Blog","description":"Enable SSH on Ubuntu Linux with simple steps. Install OpenSSH, configure settings, start the SSH service, and securely connect to your server from anywhere.","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.resellerclub.com\/blog\/how-to-enable-ssh-in-ubuntu-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to enable SSH in Ubuntu and Linux | ResellerClub Blog","og_description":"Enable SSH on Ubuntu Linux with simple steps. Install OpenSSH, configure settings, start the SSH service, and securely connect to your server from anywhere.","og_url":"https:\/\/www.resellerclub.com\/blog\/how-to-enable-ssh-in-ubuntu-linux\/","og_site_name":"ResellerClub Blog","article_publisher":"https:\/\/www.facebook.com\/profile.php?id=100005889763273","article_published_time":"2017-12-11T08:40:49+00:00","article_modified_time":"2026-05-13T13:50:28+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Aaron Chichioco","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.resellerclub.com\/blog\/#website","url":"https:\/\/www.resellerclub.com\/blog\/","name":"ResellerClub Blog","description":"Web Hosting &amp; Domains","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.resellerclub.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.resellerclub.com\/blog\/how-to-enable-ssh-in-ubuntu-linux\/#webpage","url":"https:\/\/www.resellerclub.com\/blog\/how-to-enable-ssh-in-ubuntu-linux\/","name":"How to enable SSH in Ubuntu and Linux | ResellerClub Blog","isPartOf":{"@id":"https:\/\/www.resellerclub.com\/blog\/#website"},"datePublished":"2017-12-11T08:40:49+00:00","dateModified":"2026-05-13T13:50:28+00:00","author":{"@id":"https:\/\/www.resellerclub.com\/blog\/#\/schema\/person\/603c0522fab05e8b6cc873315a1e53ae"},"description":"Enable SSH on Ubuntu Linux with simple steps. Install OpenSSH, configure settings, start the SSH service, and securely connect to your server from anywhere.","breadcrumb":{"@id":"https:\/\/www.resellerclub.com\/blog\/how-to-enable-ssh-in-ubuntu-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.resellerclub.com\/blog\/how-to-enable-ssh-in-ubuntu-linux\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.resellerclub.com\/blog\/how-to-enable-ssh-in-ubuntu-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.resellerclub.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to enable SSH in Ubuntu &#038; Linux"}]},{"@type":"Person","@id":"https:\/\/www.resellerclub.com\/blog\/#\/schema\/person\/603c0522fab05e8b6cc873315a1e53ae","name":"Aaron Chichioco","image":{"@type":"ImageObject","@id":"https:\/\/www.resellerclub.com\/blog\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/99ad79c7a82e4ad4d00a7dc6aaec27b2bae3f6f87019bfedb6a7781d49c1bac8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/99ad79c7a82e4ad4d00a7dc6aaec27b2bae3f6f87019bfedb6a7781d49c1bac8?s=96&d=mm&r=g","caption":"Aaron Chichioco"},"description":"Aaron Chichioco is a digital PR \/ business columnist. He has a vast experience in overseeing daily operations of several online businesses since 2011. He is currently employed with grit.ph. You can follow Aaron on twitter at @Aaron_Chichioco","url":"https:\/\/www.resellerclub.com\/blog\/author\/aaron-c\/"}]}},"_links":{"self":[{"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/posts\/19729","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/users\/221"}],"replies":[{"embeddable":true,"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/comments?post=19729"}],"version-history":[{"count":5,"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/posts\/19729\/revisions"}],"predecessor-version":[{"id":19761,"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/posts\/19729\/revisions\/19761"}],"wp:attachment":[{"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/media?parent=19729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/categories?post=19729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/tags?post=19729"},{"taxonomy":"hashtags","embeddable":true,"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/hashtags?post=19729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}