Allowing root login over SSH is commonly considered a poor security practice throughout the tech industry. Instead, you could perform sensitive administrative tasks by connecting with a user account and executing commands using\u00a0 View the contents of the SSH configuration file using the following command.<\/p>\n In this file you will find the following line:<\/p>\n Un-comment the line using your desired editor. Then restart the SSH service for the changes to take effect.<\/p>\n Please note that login to the root account will still be possible via the AKLWEB HOST console.<\/p>\n As previously mentioned, a good security practice is to not allow root access via SSH at all. However if root access is absolutely necessary, you can restrict it by IP address.<\/p>\n To restrict root access to a specific IP address add the following line to the\u00a0 Restart the SSH service for the changes to take effect.<\/p>\nsudo<\/code>.<\/p>\n
Disable root access<\/h3>\n
cat \/etc\/ssh\/sshd_config\r\n<\/code><\/pre>\n
#PermitRootLogin no\r\n<\/code><\/pre>\n
\/etc\/init.d\/ssh restart\r\n<\/code><\/pre>\n
Restrict root access by IP address<\/h3>\n
sshd_config<\/code>\u00a0file (substitute xxx.xxx.xxx.xxx for the IP address).<\/p>\n
AllowUsers root@xxx.xxx.xxx.xxx\r\n<\/code><\/pre>\n
\/etc\/init.d\/ssh restart<\/code><\/pre>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[242],"manual_kb_tag":[384],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2651"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2651"}],"version-history":[{"count":2,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2651\/revisions"}],"predecessor-version":[{"id":2655,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2651\/revisions\/2655"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2651"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2651"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}