How to Mount Remote Linux Filesystem or Directory Using SSHFS Over SSH

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

44 Responses

  1. Mike says:

    Every time I do the:

    # sshfs [email protected]:/home/tecmint/ /mnt/tecmint
    

    It kills my mounts and I cant do anything with them after that.

    d?????????  ? ?    ?       ?            ? test/
    
  2. Dmitriy says:

    What is the syntax to add to automount?

  3. pankaj says:

    Hi,

    I am trying to mount a folder from remote Centos machine to my local Ubuntu machine (with SSH based authorization). But on step 6, I am getting parse error.

    Following is my entry in file and then error output on mount :

    sshfs#[email protected]:/home/vagrant/automation/ /mnt/tdc_automn_remote104/ fuse IdentityFile=~/.ssh/id_rsa defaults,allow_other 0 0
    also tried with :
    sshfs#[email protected]:/home/vagrant/automation/ /mnt/tdc_automn_remote104/ fuse IdentityFile=~/.ssh/id_rsa defaults 0 0

    Error :
    TSS\[email protected]:~$ sudo mount -a
    mount: /etc/fstab: parse error: ignore entry at line 6.

    Any help would be greatly appreciated.
    Thanks

  4. Sakshi says:

    Thank you for the article. I have mounted a directory on my worker nodes but when I gave input file path to my Spark program, it gave me error as invalid checkpoint directory. I wanted to know if I want to mount a directory for a cluster with one master node and two worker node what is the correct way of doing it.How should I give path of mounted directory in my Spark program.

  5. Chandra says:

    Through this article, can we write or update in that file system or folder.

    Thanks

  6. Stevland Ambrose says:

    This article is excellent, thank you very much.

    I did run into one snag on my CentOS 7 server. I have password-less SSH enabled, but when I edited /etc/fstab as instructed it would result in a parse error.

    What ended up working in my case was

    sshfs#[email protected]:/home/tecmint/ /mnt/tecmint fuse defaults, allow_other 0 0

    I hope this helps someone.

Leave a Reply to Stevland Ambrose Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.