{"id":600,"date":"2013-11-08T15:56:07","date_gmt":"2013-11-08T20:56:07","guid":{"rendered":"http:\/\/blogs.law.harvard.edu\/acts\/?p=600"},"modified":"2013-11-08T15:56:07","modified_gmt":"2013-11-08T20:56:07","slug":"the-newbie-how-to-set-up-sshfs-on-mac-os-x","status":"publish","type":"post","link":"https:\/\/archive.blogs.harvard.edu\/acts\/2013\/11\/08\/the-newbie-how-to-set-up-sshfs-on-mac-os-x\/","title":{"rendered":"The Newbie: How to Set Up SSHFS on Mac OS X"},"content":{"rendered":"<p>Recently, I wanted to find a simple way of mounting a remote Linux file system from my Macintosh laptop. And by &#8220;simple,&#8221; I wanted the procedure to consist of mostly downloading and installing a tool, running a command, and not having to delve too deeply into editing configuration files. Fortunately, I was able to figure this out without too much trouble, and thought I would record my experience here. The procedure involves two applications, FUSE For OS X and SSHFS, both of which can be found on the <a title=\"FUSE for OS X\" href=\"http:\/\/osxfuse.github.io\/\">FUSE for OS X web site<\/a>. FUSE for OS X is a library\/framework for Mac OS X developers to establish remote connections; SSHFS is an application built upon the FUSE framework.<\/p>\n<p>First, let&#8217;s establish some terminology. We&#8217;ll simply refer to the remote server that I wanted to connect to as the &#8220;Linux server&#8221; (at the domain &#8220;remoteserver&#8221;) and define my local machine as simply &#8220;my laptop.&#8221; We&#8217;ll call the file directory that I wanted to access on the Linux server as &#8220;\/webapps&#8221;. In essence, I wanted to be able to access the folder &#8220;\/webapps&#8221; on the Linux server as if it were a folder sitting on my laptop.<\/p>\n<p>I&#8217;ll also note that I had already set up my SSH keys on my laptop and the Linux server. That needs to be accomplished before anything else. If you need guidance on that, here&#8217;s a <a title=\"SSH login without password\" href=\"http:\/\/www.linuxproblem.org\/art_9.html\">simple tutorial<\/a>.<\/p>\n<p>After SSH had been set up:<\/p>\n<ol>\n<li>I downloaded the latest version of FUSE for OS X at the <a title=\"FUSE for OS X\" href=\"http:\/\/osxfuse.github.io\/\">FUSE for OS X web site<\/a>.<\/li>\n<li>I installed FUSE for OS X on my laptop by double-clicking the disk image, then double-clicking on the installation package. There is pretty standard Mac OS X stuff; it went without a hitch.<\/li>\n<li>I downloaded the latest version of SSHFS for OS X at the <a title=\"FUSE for OS X\" href=\"http:\/\/osxfuse.github.io\/\">FUSE for OS X web site<\/a>.<\/li>\n<li>I installed SSHFS by double-clicking on the downloaded file. I ran into an issue here where Mac OS X refused to install the package because SSHFS comes from an &#8220;unidentified developer.&#8221; To get around this, you need to <a title=\"How to open apps from an unidentified developer in OS X Mountain Lion\" href=\"http:\/\/www.imore.com\/how-open-apps-unidentified-developer-os-x-mountain-lionhttp:\/\/\">override the Gatekeeper in Mac OS X<\/a>, which can be as simple as right-clicking on the package and selecting &#8220;Open&#8221; from the context menu.<\/li>\n<li>Both FUSE for OS X and SSFHS were now installed.<\/li>\n<li>Next, I needed to create a new folder on my laptop which would serve as the mount point. Let&#8217;s call that folder &#8220;~\/mountpoint.&#8221;<\/li>\n<li>Now, it was a matter of <a title=\"My Guide for SSHFS\" href=\"http:\/\/www.read-write.fr\/blog\/blog\/2012\/02\/26\/my-guide-for-sshfs\/\">learning how to invoke the appropriate command<\/a> to have my laptop mount the Linux server. The command I used was:<\/li>\n<\/ol>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n\r\nsshfs -p 22 username@remoteserver:\/webapps\/ ~\/mountpoint -oauto_cache,reconnect,defer_permissions,noappledouble,negative_vncache,volname=myVolName\r\n\r\n<\/pre>\n<p>Using the above steps, I was able to successfully mount the Linux server. Unmounting is a piece of cake:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n\r\numount ~\/mountpoint\r\n\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h2>Additional notes:<\/h2>\n<p>The SSHFS command used to mount the remote server is lengthy; indeed, filled to the brim with arguments that I cut and pasted. If you would like to know what each argument does, there is a <a title=\"Options for MacFUSE\" href=\"http:\/\/code.google.com\/p\/macfuse\/wiki\/OPTIONS\">helpful guide<\/a> that describes them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, I wanted to find a simple way of mounting a remote Linux file system from my Macintosh laptop. And by &#8220;simple,&#8221; I wanted the procedure to consist of mostly downloading and installing a tool, running a command, and not having to delve too deeply into editing configuration files. Fortunately, I was able to figure [&hellip;]<\/p>\n","protected":false},"author":4634,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[910,1],"tags":[111243,111242,111241],"class_list":["post-600","post","type-post","status-publish","format-standard","hentry","category-development","category-uncategorized","tag-fuse","tag-macosx","tag-sshfs"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/archive.blogs.harvard.edu\/acts\/wp-json\/wp\/v2\/posts\/600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/archive.blogs.harvard.edu\/acts\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/archive.blogs.harvard.edu\/acts\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/acts\/wp-json\/wp\/v2\/users\/4634"}],"replies":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/acts\/wp-json\/wp\/v2\/comments?post=600"}],"version-history":[{"count":18,"href":"https:\/\/archive.blogs.harvard.edu\/acts\/wp-json\/wp\/v2\/posts\/600\/revisions"}],"predecessor-version":[{"id":619,"href":"https:\/\/archive.blogs.harvard.edu\/acts\/wp-json\/wp\/v2\/posts\/600\/revisions\/619"}],"wp:attachment":[{"href":"https:\/\/archive.blogs.harvard.edu\/acts\/wp-json\/wp\/v2\/media?parent=600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/acts\/wp-json\/wp\/v2\/categories?post=600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/acts\/wp-json\/wp\/v2\/tags?post=600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}