{"id":5812,"date":"2016-04-22T17:20:05","date_gmt":"2016-04-22T17:20:05","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=5812"},"modified":"2016-04-22T17:20:05","modified_gmt":"2016-04-22T17:20:05","slug":"enable-ssh-ubuntu-16-04-lts","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2016\/04\/enable-ssh-ubuntu-16-04-lts\/","title":{"rendered":"How to Enable SSH in Ubuntu 16.04 LTS"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/enable-ssh-icon.png\"><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=\"alignleft size-full wp-image-5813\" \/><\/a><\/p>\n<p>Here&#8217;s how to enable Secure Shell (SSH) service in Ubuntu 16.04 Xenial Xerus, the new LTS release, to allow secure remote login and other network communications.<\/p>\n<p>Ubuntu provides OpenSSH (OpenBSD Secure Shell) in its universe repositories, which is a suite of security-related network-level utilities based on the SSH protocol.<\/p>\n<p>1. To install it, open terminal (Ctrl+Alt+T) or log in  Ubuntu server and run command:<\/p>\n<pre style=\"border:none;\">sudo apt-get install openssh-server<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/install-openssh.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/install-openssh-600x86.jpg\" alt=\"install openssh server\" width=\"600\" height=\"86\" class=\"aligncenter size-large wp-image-5814\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/install-openssh-600x86.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/install-openssh-450x65.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/install-openssh.jpg 706w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>2. After that, you should have SSH service enabled in your system, you may check its status by running command:<\/p>\n<pre style=\"border:None;\">sudo service ssh status<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/check-ssh-status.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/check-ssh-status-600x191.jpg\" alt=\"check ssh status\" width=\"600\" height=\"191\" class=\"aligncenter size-large wp-image-5815\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/check-ssh-status-600x191.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/check-ssh-status-450x143.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/check-ssh-status.jpg 892w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>3. You may change some settings (e.g., the listening port, and root login permission) by editing the configuration file via command:<\/p>\n<pre style=\"border:none;\">sudo nano \/etc\/ssh\/sshd_config<\/pre>\n<p>On Ubuntu desktop, you may use <code>gedit<\/code> instead of <code>nano<\/code>:<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/ssh-settings.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/ssh-settings-600x340.jpg\" alt=\"SSH settings\" width=\"600\" height=\"340\" class=\"aligncenter size-large wp-image-5816\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/ssh-settings-600x340.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/ssh-settings-450x255.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/ssh-settings.jpg 1047w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Finally apply the changes by restarting or reloading SSH:<\/p>\n<pre style=\"border:none;\">sudo service ssh restart<\/pre>\n<p>For more, read the <a href=\"http:\/\/www.openssh.com\/manual.html\" title=\"OpenSSH Manual\" target=\"_blank\">official manual page<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s how to enable Secure Shell (SSH) service in Ubuntu 16.04 Xenial Xerus, the new LTS release, to allow secure remote login and other network communications. Ubuntu provides OpenSSH (OpenBSD Secure Shell) in its universe repositories, which is a suite of security-related network-level utilities based on the SSH protocol. 1. To install it, open terminal [&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-5812","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\/5812","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=5812"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/5812\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=5812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=5812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=5812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}