{"id":1111,"date":"2010-11-11T09:13:13","date_gmt":"2010-11-11T09:13:13","guid":{"rendered":"http:\/\/www.haydnwilliams.com\/blog\/?p=1111"},"modified":"2022-04-11T21:44:25","modified_gmt":"2022-04-11T20:44:25","slug":"mac-firewall-blocking-ssh","status":"publish","type":"post","link":"https:\/\/www.haydnwilliams.com\/blog\/mac-firewall-blocking-ssh\/","title":{"rendered":"Mac firewall blocking SSH?"},"content":{"rendered":"<p>SSH should be relatively easy to set up in OS X, consisting merely of ticking the box marked &#8220;<em>Remote Login<\/em>&#8221; in the &#8220;<em>Sharing<\/em>&#8221; pane of System Preferences.<\/p>\n<div id=\"attachment_1113\" style=\"width: 679px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1113\" class=\"size-full wp-image-1113\" title=\"Sorry about the wobbly blocking, but it's hard to use a trackpad on a train going full tilt.\" src=\"http:\/\/www.haydnwilliams.com\/blog\/wp-content\/uploads\/2010\/11\/Picture-2.png\" alt=\"Sorry about the wobbly blocking, but it's hard to use a trackpad on a train going full tilt.\" width=\"669\" height=\"467\" srcset=\"https:\/\/www.haydnwilliams.com\/blog\/wp-content\/uploads\/2010\/11\/Picture-2.png 669w, https:\/\/www.haydnwilliams.com\/blog\/wp-content\/uploads\/2010\/11\/Picture-2-300x209.png 300w\" sizes=\"auto, (max-width: 669px) 100vw, 669px\" \/><p id=\"caption-attachment-1113\" class=\"wp-caption-text\">Sorry about the wobbly blocking, but it&#39;s hard to use a trackpad on a train going full tilt.<\/p><\/div>\n<p>That should enable you to log in from any computer on the local network, router considerations aside. I, however, found that I was struggling to connect from a different machine. After checking and double-checking everything, I finally <a href=\"http:\/\/hintsforums.macworld.com\/showthread.php?t=93615\" target=\"_blank\" rel=\"noopener\">stumbled across a post <\/a>which suggested that the Mac firewall might be the problem. Sure enough, a quick check of the log showed that requests from the local machine (192.168.1.64) were being denied:<\/p>\n<div id=\"attachment_1112\" style=\"width: 760px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1112\" class=\"size-full wp-image-1112\" title=\"Mac Firewall denying requests from a local machine to connect over SSH.\" src=\"http:\/\/www.haydnwilliams.com\/blog\/wp-content\/uploads\/2010\/11\/Picture-1.png\" alt=\"Mac Firewall denying requests from a local machine to connect over SSH.\" width=\"750\" height=\"182\" srcset=\"https:\/\/www.haydnwilliams.com\/blog\/wp-content\/uploads\/2010\/11\/Picture-1.png 750w, https:\/\/www.haydnwilliams.com\/blog\/wp-content\/uploads\/2010\/11\/Picture-1-300x72.png 300w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><p id=\"caption-attachment-1112\" class=\"wp-caption-text\">Mac Firewall denying requests from a local machine to connect over SSH.<\/p><\/div>\n<p>When you enable any kind of sharing, Mac OS automatically updates the firewall to let that traffic through. However, it seems that in some cases it doesn&#8217;t actually work! Even though &#8220;<em>Remote Login (SSH)<\/em>&#8221; was showing as allowed in my Firewall settings, I had to change the firewall to &#8220;<em>Allow all incoming connections<\/em>&#8220;, connect from the remote machine, and then set the firewall back to &#8220;<em>Set access for specific services and applications<\/em>&#8220;. This did the trick, and I found that everything then immediately worked as it should. That&#8217;s worth remembering.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SSH should be relatively easy to set up in OS&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[511,185,236,513,514,515,512,510],"class_list":["post-1111","post","type-post","status-publish","format-standard","hentry","category-it","tag-firewall","tag-mac","tag-os-x","tag-port-22","tag-remote-login","tag-secure-shell","tag-sharing","tag-ssh"],"_links":{"self":[{"href":"https:\/\/www.haydnwilliams.com\/blog\/wp-json\/wp\/v2\/posts\/1111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.haydnwilliams.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.haydnwilliams.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.haydnwilliams.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.haydnwilliams.com\/blog\/wp-json\/wp\/v2\/comments?post=1111"}],"version-history":[{"count":0,"href":"https:\/\/www.haydnwilliams.com\/blog\/wp-json\/wp\/v2\/posts\/1111\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.haydnwilliams.com\/blog\/wp-json\/wp\/v2\/media?parent=1111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.haydnwilliams.com\/blog\/wp-json\/wp\/v2\/categories?post=1111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.haydnwilliams.com\/blog\/wp-json\/wp\/v2\/tags?post=1111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}