{"id":10113,"date":"2020-05-28T14:46:02","date_gmt":"2020-05-28T14:46:02","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=10113"},"modified":"2020-05-28T14:46:02","modified_gmt":"2020-05-28T14:46:02","slug":"enable-ssh-service-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2020\/05\/enable-ssh-service-ubuntu-20-04\/","title":{"rendered":"How to Enable SSH Service in Ubuntu 20.04"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/enable-ssh-icon.png\" alt=\"Enable SSH Ubuntu 16.04\" width=\"245\" height=\"250\" class=\"aligncenter size-full wp-image-5813\" \/><\/p>\n<p>This quick tip shows how to enable Secure Shell (SSH) service in Ubuntu 20.04 LTS, both desktop and server, to allow secure remote login and other network communications.<\/p>\n<p>Ubuntu includes <b>OpenSSH<\/b>, a suite of secure networking utilities based on the Secure Shell protocol, in its main repositories. While OpenSSH client is installed out-of-the-box, you can do following steps to install and setup OpenSSH server in Ubuntu 20.04.<\/p>\n<p><b>1.<\/b> First open <u>terminal<\/u> and run command to install the packages:<\/p>\n<pre style=\"border:None;\">sudo apt install ssh<\/pre>\n<p><i>Type user password (no asterisk feedback) for sudo prompt and hit Enter.<\/i><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/apt-ssh-600x267.png\" alt=\"\" width=\"600\" height=\"267\" class=\"aligncenter size-large wp-image-10114\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/apt-ssh.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/apt-ssh-450x200.png 450w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>2.<\/b> Once installed, SSH services start in background silently. You can check its status by running command:<\/p>\n<pre style=\"border:None;\">systemctl status ssh.service<\/pre>\n<p>You may replace <code>status<\/code> in the code with <code>stop<\/code>, <code>reload<\/code>, <code>restart<\/code> to stop, reload, or restart the service.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/ssh-status-600x301.png\" alt=\"\" width=\"600\" height=\"301\" class=\"aligncenter size-large wp-image-10115\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/ssh-status.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/ssh-status-450x226.png 450w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>3.<\/b> The SSH service should be working good now for basic use! If you want to change the <i>listening port<\/i>, <i>root login permission<\/i>, or other authentications, run command to edit the configuration file:<\/p>\n<pre style=\"border:None;\">sudo nano \/etc\/ssh\/sshd_config<\/pre>\n<p>replace <code>nano<\/code> with <code>gedit<\/code> if you&#8217;re on Ubuntu Desktop.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/ssh-config.png\" alt=\"\" width=\"600\" height=\"379\" class=\"aligncenter size-full wp-image-10116\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/ssh-config.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/ssh-config-450x284.png 450w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Save changes by pressing <b>Ctrl+X<\/b>, then <b>Y<\/b>, and finally hit Enter. And remember to restart the SSH service via <code>sudo systemctl restart ssh.service<\/code> command.<\/p>","protected":false},"excerpt":{"rendered":"<p>This quick tip shows how to enable Secure Shell (SSH) service in Ubuntu 20.04 LTS, both desktop and server, to allow secure remote login and other network communications. Ubuntu includes OpenSSH, a suite of secure networking utilities based on the Secure Shell protocol, in its main repositories. While OpenSSH client is installed out-of-the-box, you can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[347,24],"class_list":["post-10113","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-openssh","tag-ssh"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/10113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=10113"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/10113\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=10113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=10113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=10113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}