{"id":850,"date":"2017-02-21T12:31:55","date_gmt":"2017-02-21T12:31:55","guid":{"rendered":"https:\/\/www.xsofthost.com\/help\/?p=850"},"modified":"2017-08-31T21:51:25","modified_gmt":"2017-08-31T21:51:25","slug":"restarting-ssh-service-from-linux-shell-command-line","status":"publish","type":"post","link":"https:\/\/www.xsofthost.com\/help\/restarting-ssh-service-from-linux-shell-command-line\/","title":{"rendered":"Restarting SSH Service From Linux Shell Command Line"},"content":{"rendered":"<h2 class=\"headline\">Why you need to Restart SSH Service<\/h2>\n<p>As root System Administrators its one of the common tasks you need to be done on live servers is restarting services.If you change ssh configuration file (for example you change the SSH port number) this modification require a restart to take effect.<\/p>\n<h2 class=\"headline\">How To\u00a0 Restart SSH Service under Linux \/ UNIX<\/h2>\n<h3>For CentOS \/ RHEL \/ Fedora \/ Redhat Linux Restart SSH<\/h3>\n<div class=\"cmd\">\n<div><span class=\"prompt\">service sshd restart <\/span><\/div>\n<div>Or<\/div>\n<div><span class=\"prompt\">\/etc\/init.d\/sshd restart <\/span><\/div>\n<\/div>\n<h3>Restart SSH On RHEL\/CentOS\/Fedora Linux with systemd<\/h3>\n<div class=\"cmd\">\n<div><span class=\"prompt\">sudo systemctl restart sshd <\/span><\/div>\n<\/div>\n<h3>Restart SSH On Debian \/ Ubuntu Linux<\/h3>\n<div class=\"cmd\">\n<div><span class=\"prompt\">\/etc\/init.d\/ssh restart <\/span><\/div>\n<div>Or<\/div>\n<div><span class=\"prompt\">service ssh restart <\/span><\/div>\n<div>Or<\/div>\n<div><span class=\"prompt\">sudo service ssh restart <\/span><\/div>\n<\/div>\n<h3>Restart SSH On Debian\/Ubuntu\/Mint Linux with systemd<\/h3>\n<div class=\"cmd\">\n<div><span class=\"prompt\">sudo systemctl restart ssh <\/span><\/div>\n<\/div>\n<h3>Restart SSH On For FreeBSD<\/h3>\n<div class=\"cmd\">\n<div><span class=\"prompt\">\/etc\/rc.d\/sshd restart <\/span><\/div>\n<div>Or<\/div>\n<div><span class=\"prompt\">sudo service sshd restart<\/span><\/div>\n<\/div>\n<h3>Restart SSH For OpenBSD<\/h3>\n<div class=\"cmd\">\n<div><span class=\"prompt\">\/etc\/rc.d\/sshd restart<\/span><\/div>\n<div>Or<\/div>\n<div><span class=\"prompt\">doas \/etc\/rc.d\/sshd restart<\/span><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Why you need to Restart SSH Service As root System Administrators its one of the common tasks you need to be done on live servers is restarting services.If you change ssh configuration file (for example you change the SSH port number) this modification require a restart to take effect. How To\u00a0 Restart SSH Service under [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":859,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[41],"tags":[178,42,50,148,142,74],"_links":{"self":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/850"}],"collection":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/comments?post=850"}],"version-history":[{"count":10,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/850\/revisions"}],"predecessor-version":[{"id":861,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/850\/revisions\/861"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media\/859"}],"wp:attachment":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media?parent=850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/categories?post=850"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/tags?post=850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}