{"id":968,"date":"2016-02-15T20:45:26","date_gmt":"2016-02-15T20:45:26","guid":{"rendered":"https:\/\/www.eskimo.com\/support\/?page_id=968"},"modified":"2023-12-08T00:08:05","modified_gmt":"2023-12-08T08:08:05","slug":"sshfs","status":"publish","type":"page","link":"https:\/\/www.eskimo.com\/support\/using-linux\/sshfs\/","title":{"rendered":"SSHFS"},"content":{"rendered":"<p style=\"text-align: center;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 20pt; color: #008000;\">SSHFS<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12pt;\">\u00a0\u00a0\u00a0\u00a0 SSHFS allows you to mount a portion or all of your home directory from our servers to your local machine or to mount a portion of your local machines file system in your home directory on our servers.<\/span><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0 Please note that while Ubuntu is used as an example, you can use <a href=\"https:\/\/www.eskimo.com\/services\/shells\/servers\/\">any of our shells servers<\/a>.<\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12pt;\">\u00a0\u00a0\u00a0\u00a0 SSHFS requires a machine with ssh installed and the fuse file system installed.\u00a0 If you install sshfs, it will install the necessary requirements:<\/span><\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Debian based systems: apt-get install sshfs<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RedHat based systems: yum install sshfs<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Suse Systems: zypper install sshfs<\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12pt;\">\u00a0\u00a0\u00a0\u00a0 For MacOS, you can get Fuse and SHFS (does same as SSHFS for Mac) at <a href=\"https:\/\/sourceforge.net\/projects\/osxfuse\/\" target=\"_blank\" rel=\"noopener\">https:\/\/sourceforge.net\/projects\/osxfuse\/<\/a>.<\/span><\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0 For Windows: <a href=\"https:\/\/win-sshfs.googlecode.com\/files\/win-sshfs-0.0.1.5-setup.exe\" target=\"_blank\" rel=\"noopener\">https:\/\/win-sshfs.googlecode.com\/files\/win-sshfs-0.0.1.5-setup.exe<\/a><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12pt;\">\u00a0\u00a0\u00a0\u00a0 For example, let&#8217;s say you wish to work on your website and edit on your home machine.\u00a0 You&#8217;d like the changes you make to be immediate rather than having to sync the changes using FTP after you are done.<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12pt;\">\u00a0\u00a0\u00a0\u00a0 To do this, on your local machine in a terminal window type:<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12pt;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: #800000;\">sshfs<\/span> <span style=\"color: #993300;\">user<\/span><span style=\"color: #000000;\">@ubuntu<\/span><span style=\"color: #000080;\">.eskimo.com<\/span><span style=\"color: #000000;\">:<\/span><span style=\"color: #333300;\">\/home\/<\/span><span style=\"color: #993300;\">user<\/span><span style=\"color: #333300;\">\/public_html<\/span> <span style=\"color: #333300;\">public_html<\/span><\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12pt;\">\u00a0\u00a0\u00a0\u00a0 Substitute &#8220;<span style=\"color: #993300;\">user<\/span>&#8221; for whatever your actual login is.\u00a0 You should be able to use any of our shell servers but it is known to work on <span style=\"color: #000080;\">ubuntu<\/span>.\u00a0 It will prompt for password.\u00a0 After the password is successfully entered, public_html on your local machine will be the same as public_html on the ubuntu server and any changes you make will be immediately reflected there.<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12pt;\">\u00a0\u00a0\u00a0\u00a0 When you are done and wish to unmount the file system type:<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fusermount -u public_html<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12pt;\">\u00a0 \u00a0\u00a0 This is whatever directory you specified when you mounted the file system.\u00a0 You can even mount your entire home directory this way. <\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12pt;\">\u00a0\u00a0\u00a0\u00a0 It is possible to do the opposite and mount directories from your home machine onto Eskimo&#8217;s server If your machine listens to ssh connections and either has a static IP or you at least know the IP address at the time.<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12pt;\">\u00a0\u00a0\u00a0\u00a0 To mount a directory from your machine on to one of our servers, first ssh into our servers or come in with x2go, then use the same syntax substituting your machine&#8217;s name or IP address for ubuntu and your username on your machine to login.<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12pt;\">\u00a0\u00a0\u00a0\u00a0 Be sure to unmount when you are done.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SSHFS \u00a0\u00a0\u00a0\u00a0 SSHFS allows you to mount a portion or all of your home directory from our servers to your local machine or to mount a portion of your local machines file system in your home directory on our servers. &hellip; <a href=\"https:\/\/www.eskimo.com\/support\/using-linux\/sshfs\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":761,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"showcase.php","meta":{"footnotes":""},"class_list":["post-968","page","type-page","status-publish","hentry","wpautop"],"_links":{"self":[{"href":"https:\/\/www.eskimo.com\/support\/wp-json\/wp\/v2\/pages\/968","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.eskimo.com\/support\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.eskimo.com\/support\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.eskimo.com\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.eskimo.com\/support\/wp-json\/wp\/v2\/comments?post=968"}],"version-history":[{"count":2,"href":"https:\/\/www.eskimo.com\/support\/wp-json\/wp\/v2\/pages\/968\/revisions"}],"predecessor-version":[{"id":1100,"href":"https:\/\/www.eskimo.com\/support\/wp-json\/wp\/v2\/pages\/968\/revisions\/1100"}],"up":[{"embeddable":true,"href":"https:\/\/www.eskimo.com\/support\/wp-json\/wp\/v2\/pages\/761"}],"wp:attachment":[{"href":"https:\/\/www.eskimo.com\/support\/wp-json\/wp\/v2\/media?parent=968"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}