{"id":11333,"date":"2021-09-24T14:32:39","date_gmt":"2021-09-24T11:32:39","guid":{"rendered":"https:\/\/unihost.com\/help\/?p=11333"},"modified":"2023-01-19T13:59:51","modified_gmt":"2023-01-19T10:59:51","slug":"how-to-mount-remote-file-systems-over-ssh","status":"publish","type":"post","link":"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/","title":{"rendered":"How to mount remote file systems over SSH"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11353 size-full\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/template.jpg\" alt=\"How to mount remote file systems over SSH\" width=\"1280\" height=\"720\" \/ title=\"How to mount remote file systems over SSH - Image 1\"><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">This tutorial will show you how to install the SSHFS client on Linux and how to mount a remote file systems over SSH.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><!--more--><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">SSHFS (SSH Filesystem) is a filesystem client based on FUSE for mounting remote directories over an SSH connection. SSHFS is using the SFTP protocol, which is a subsystem of SSH, and it is enabled by default on most SSH servers.<\/span><\/p>\n<h2 style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Install SSHFS<\/span><\/h2>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">SSHFS packages are available for all major operating systems.<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Ubuntu \/ Debian<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">apt update<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">apt install sshfs<\/span><\/pre>\n<p style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">RHEL &amp; Centos &amp; Fedora &amp; AlmaLinux<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">dnf install sshfs<\/span><\/pre>\n<h2 style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Mounting a Remote File System<\/span><\/h2>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">You need to create a local directory in which to mount the remote file system. In my case, it will be a folder <span style=\"color: #ff0000;\">\/backup<\/span><\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">mkdir <span style=\"color: #ff0000;\">\/backup<\/span><\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">To mount remote directory.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> sshfs user@host:\/remote_directory\u00a0 \/local_directory<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">In my case, I want to mount a folder \/home from remote server 192.168.1.10 to my local folder <span style=\"color: #ff0000;\">\/backup<\/span><\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">sshfs root@192.168.1.10:\/home\u00a0 \u00a0<span style=\"color: #ff0000;\">\/backup<\/span><\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">You will be prompted to enter the user password. To avoid typing the password each time, you should generate SSH keys. Check the manual here &#8211; <a href=\"https:\/\/unihost.com\/help\/how-to-set-up-ssh-keys-on-centos-7\/\">How to set up SSH keys<\/a><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">In order to set up a permanent mount point, we will need to edit the <span style=\"color: #ff0000;\">\/etc\/fstab<\/span> file on the server to automatically mount the file system each time the system is booted.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">sshfs root@192.168.1.10:\/home\u00a0 \u00a0<span style=\"color: #ff0000;\">\/backup<\/span>\u00a0 \u00a0 fuse.sshfs\u00a0 \u00a0 \u00a0 defaults 0 0<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Save the changes to <span style=\"color: #ff0000;\">\/etc\/fstab<\/span> and reboot.<\/span><\/p>\n<h2 style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Unmounting a remote file system<\/span><\/h2>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">To unmount a remote file system use <span style=\"color: #ff0000;\">umount<\/span> or <span style=\"color: #ff0000;\">fusermount<\/span> command followed by the directory where it has been mounted (mount point):<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">fusermount -u <span style=\"color: #ff0000;\">\/backup<\/span><\/span>\n\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">umount <span style=\"color: #ff0000;\">\/backup<\/span><\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to install the SSHFS client on Linux and how to mount a remote file systems over SSH.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[158],"tags":[],"class_list":["post-11333","post","type-post","status-publish","format-standard","hentry","category-dedicated-servers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to mount remote file systems over SSH - Unihost.FAQ<\/title>\n<meta name=\"description\" content=\"This tutorial will show you how to install the SSHFS client on Linux and how to mount a remote file systems over SSH.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to mount remote file systems over SSH - Unihost.FAQ\" \/>\n<meta property=\"og:description\" content=\"This tutorial will show you how to install the SSHFS client on Linux and how to mount a remote file systems over SSH.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/\" \/>\n<meta property=\"og:site_name\" content=\"Unihost.FAQ\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unihost\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-24T11:32:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-19T10:59:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unihost.com\/help\/wp-content\/uploads\/template.jpg\" \/>\n<meta name=\"author\" content=\"Unihost Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@unihost\" \/>\n<meta name=\"twitter:site\" content=\"@unihost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Unihost Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/\"},\"author\":{\"name\":\"Unihost Support\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\"},\"headline\":\"How to mount remote file systems over SSH\",\"datePublished\":\"2021-09-24T11:32:39+00:00\",\"dateModified\":\"2023-01-19T10:59:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/\"},\"wordCount\":242,\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/unihost.com\/help\/wp-content\/uploads\/template.jpg\",\"articleSection\":[\"02. Dedicated servers\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/\",\"url\":\"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/\",\"name\":\"How to mount remote file systems over SSH - Unihost.FAQ\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/unihost.com\/help\/wp-content\/uploads\/template.jpg\",\"datePublished\":\"2021-09-24T11:32:39+00:00\",\"dateModified\":\"2023-01-19T10:59:51+00:00\",\"description\":\"This tutorial will show you how to install the SSHFS client on Linux and how to mount a remote file systems over SSH.\",\"breadcrumb\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/#primaryimage\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?.\/template.jpg\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?.\/template.jpg\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Unihost\",\"item\":\"https:\/\/unihost.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Help\",\"item\":\"https:\/\/unihost.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to mount remote file systems over SSH\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/unihost.com\/help\/#website\",\"url\":\"https:\/\/unihost.com\/help\/\",\"name\":\"Unihost.FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/unihost.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/unihost.com\/help\/#organization\",\"name\":\"Unihost\",\"alternateName\":\"Unihost\",\"url\":\"https:\/\/unihost.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"width\":300,\"height\":300,\"caption\":\"Unihost\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/unihost\/\",\"https:\/\/x.com\/unihost\",\"https:\/\/www.instagram.com\/unihost\/?hl=en\",\"https:\/\/www.linkedin.com\/company\/unihost-com\",\"https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\",\"name\":\"Unihost Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"caption\":\"Unihost Support\"},\"sameAs\":[\"https:\/\/unihost.com\/\"],\"url\":\"https:\/\/unihost.com\/help\/author\/support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to mount remote file systems over SSH - Unihost.FAQ","description":"This tutorial will show you how to install the SSHFS client on Linux and how to mount a remote file systems over SSH.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/","og_locale":"en_US","og_type":"article","og_title":"How to mount remote file systems over SSH - Unihost.FAQ","og_description":"This tutorial will show you how to install the SSHFS client on Linux and how to mount a remote file systems over SSH.","og_url":"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/","og_site_name":"Unihost.FAQ","article_publisher":"https:\/\/www.facebook.com\/unihost\/","article_published_time":"2021-09-24T11:32:39+00:00","article_modified_time":"2023-01-19T10:59:51+00:00","og_image":[{"url":"https:\/\/unihost.com\/help\/wp-content\/uploads\/template.jpg","type":"","width":"","height":""}],"author":"Unihost Support","twitter_card":"summary_large_image","twitter_creator":"@unihost","twitter_site":"@unihost","twitter_misc":{"Written by":"Unihost Support","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/"},"author":{"name":"Unihost Support","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a"},"headline":"How to mount remote file systems over SSH","datePublished":"2021-09-24T11:32:39+00:00","dateModified":"2023-01-19T10:59:51+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/"},"wordCount":242,"publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"image":{"@id":"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/#primaryimage"},"thumbnailUrl":"https:\/\/unihost.com\/help\/wp-content\/uploads\/template.jpg","articleSection":["02. Dedicated servers"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/","url":"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/","name":"How to mount remote file systems over SSH - Unihost.FAQ","isPartOf":{"@id":"https:\/\/unihost.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/#primaryimage"},"image":{"@id":"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/#primaryimage"},"thumbnailUrl":"https:\/\/unihost.com\/help\/wp-content\/uploads\/template.jpg","datePublished":"2021-09-24T11:32:39+00:00","dateModified":"2023-01-19T10:59:51+00:00","description":"This tutorial will show you how to install the SSHFS client on Linux and how to mount a remote file systems over SSH.","breadcrumb":{"@id":"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/#primaryimage","url":"https:\/\/unihost.com\/help\/minio.php?.\/template.jpg","contentUrl":"https:\/\/unihost.com\/help\/minio.php?.\/template.jpg","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/help\/how-to-mount-remote-file-systems-over-ssh\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Unihost","item":"https:\/\/unihost.com\/"},{"@type":"ListItem","position":2,"name":"Help","item":"https:\/\/unihost.com\/help\/"},{"@type":"ListItem","position":3,"name":"How to mount remote file systems over SSH"}]},{"@type":"WebSite","@id":"https:\/\/unihost.com\/help\/#website","url":"https:\/\/unihost.com\/help\/","name":"Unihost.FAQ","description":"","publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unihost.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/unihost.com\/help\/#organization","name":"Unihost","alternateName":"Unihost","url":"https:\/\/unihost.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","width":300,"height":300,"caption":"Unihost"},"image":{"@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unihost\/","https:\/\/x.com\/unihost","https:\/\/www.instagram.com\/unihost\/?hl=en","https:\/\/www.linkedin.com\/company\/unihost-com","https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw"]},{"@type":"Person","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a","name":"Unihost Support","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","caption":"Unihost Support"},"sameAs":["https:\/\/unihost.com\/"],"url":"https:\/\/unihost.com\/help\/author\/support\/"}]}},"_links":{"self":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/11333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/comments?post=11333"}],"version-history":[{"count":8,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/11333\/revisions"}],"predecessor-version":[{"id":11362,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/11333\/revisions\/11362"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/media?parent=11333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/categories?post=11333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/tags?post=11333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}