{"id":888,"date":"2016-05-15T04:04:15","date_gmt":"2016-05-15T04:04:15","guid":{"rendered":"http:\/\/shivdev.com\/blog\/?p=888"},"modified":"2016-05-15T04:04:15","modified_gmt":"2016-05-15T04:04:15","slug":"connection-refused-while-trying-to-ssh-localhost-on-mac","status":"publish","type":"post","link":"http:\/\/shivdev.com\/blog\/2016\/05\/15\/connection-refused-while-trying-to-ssh-localhost-on-mac\/","title":{"rendered":"Connection refused while trying to ssh localhost on Mac"},"content":{"rendered":"<p>Although SSH is available on the Mac, you need to enable Remote Login. Otherwise you will see<\/p>\n<blockquote><p>$ ssh localhost<br \/>\nssh: connect to host localhost port 22: Connection refused\n<\/p><\/blockquote>\n<p>Good article from <a href=\"http:\/\/stackoverflow.com\/questions\/6313929\/how-do-i-open-port-22-in-os-x-10-6-7\">StackOverflow<\/a> describes this<\/p>\n<blockquote><p>\n<strong>System Preferences<\/strong> -> (under) Internet &#038; Networking -> <strong>Sharing<\/strong> -> check <strong>Remote Login<\/strong> and select the users\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Although SSH is available on the Mac, you need to enable Remote Login. Otherwise you will see $ ssh localhost ssh: connect to host localhost port 22: Connection refused Good article from StackOverflow describes this System Preferences -> (under) Internet &#038; Networking -> Sharing -> check Remote Login and select the users<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[34],"tags":[],"_links":{"self":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/888"}],"collection":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/comments?post=888"}],"version-history":[{"count":1,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/888\/revisions"}],"predecessor-version":[{"id":889,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/888\/revisions\/889"}],"wp:attachment":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/media?parent=888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/categories?post=888"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/tags?post=888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}