{"id":483,"date":"2021-09-17T14:14:49","date_gmt":"2021-09-17T14:14:49","guid":{"rendered":"https:\/\/www.torontohelpdesk.ca\/blog\/?p=483"},"modified":"2021-09-17T14:14:50","modified_gmt":"2021-09-17T14:14:50","slug":"allowing-ssh-from-a-specific-ip","status":"publish","type":"post","link":"https:\/\/www.torontohelpdesk.ca\/blog\/allowing-ssh-from-a-specific-ip\/","title":{"rendered":"Allowing SSH from a specific IP"},"content":{"rendered":"\n<p><strong>Problem:<\/strong><\/p>\n\n\n\n<p>Users cannot connect to site from and admin perspective through SSH<\/p>\n\n\n\n<p><strong>Solution:<\/strong><\/p>\n\n\n\n<p><strong><em>Using VI<\/em><\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Connect to the server via SSH<\/li><li>vi \/etc\/hosts.allow<\/li><li>Once you are inside the file, to start editing press \u201ci\u201d<\/li><li>Add a record sshd:IP Address (eg: sshd:8.8.8.8)<\/li><li>Press ESC to stop editing<\/li><li>To save and exit type \u201c:wq\u201d<\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Problem: Users cannot connect to site from and admin perspective through SSH Solution: Using VI Connect to the server via SSH vi \/etc\/hosts.allow Once you are inside the file, to start editing press \u201ci\u201d Add a record sshd:IP Address (eg: <a class=\"more-link\" href=\"https:\/\/www.torontohelpdesk.ca\/blog\/allowing-ssh-from-a-specific-ip\/\">Continue reading <span class=\"screen-reader-text\">  Allowing SSH from a specific IP<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-483","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts\/483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/comments?post=483"}],"version-history":[{"count":1,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts\/483\/revisions"}],"predecessor-version":[{"id":484,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts\/483\/revisions\/484"}],"wp:attachment":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/media?parent=483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/categories?post=483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/tags?post=483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}