Mount Remote folder using SSH(sshfs) on Fedora 10, Ubuntu 8.10, Ubuntu 9.04

Hi Friends,

It’s possible to mount any Remote directory using SSH with sshfs utility(command). It’s Very Easy. This Steps you can follow for Fedora 10, Ubuntu 8.10 and Ubuntu 9.04 Linux.

First Let us know something about SSHFS.

What is SSHFS?

SSHFS allows you to conect to any host that supports SSH and mount the remote directory in your local directory. This means you will be able to access files as if they were on your own system and best of all the transactions are encrypted using SSH.

This is much faster, easier, and more effecient than using FTP. Still Some people are actually using regular FTP to transfer files. The problem with FTP is that not only are your files sent in clear text but username and password are also in plain sight for anyone to can see it.

For Fedora 10 :-

Step 1 :- Login as a root by executing following command from user.
[linuxuser@tejasbarot.com]$ su – root

Step 2 :- Execute Following command to install SSHFS on your Fedora Box.
[root@tejasbarot.com]# yum -y install sshfs*

Step 3:- Once Installation Done Login as a user now.Now Create One Local Directory(Where you want to mount Remote Directory). (You can also mount to your existing directory)
[root@tejasbarot.com]# su – linuxuser

[linuxuser@tejasbarot.com]$ mkdir ~/SSHFS

Step 4:- Now Execute command to mount remote directory into Local Directory.

[linuxuser@tejasbarot.com]$ sshfs root@192.168.100.55:/home/linuxuser/ ~/SSHFS. (sshfs username@ssh-server-ip:/directory-you-want-mount <local-directory-where-you-want-to-mount-remote-folder)

Step 5 :- It will ask your for password of user which you have provided.Now Check your ~/SSHFS ( Local Directory where you mounted SSH Remote Folder).You will able to see Your all files into ~/SSHFS

For Ubuntu 8.10 and Ubuntu 9.04

Step 1 :- Login as a root by executing following command from user.
linuxuser@tejasbarot.com:~$ su – root

Step 2 :- Execute Following command to install SSHFS on your Fedora Box.
root@tejasbarot.com:~# apt-get install sshfs -y

Step 3:- Once Installation Done Login as a user now.Now Create One Local Directory(Where you want to mount Remote Directory). (You can also mount to your existing directory)
root@tejasbarot.com:~# su – linuxuser

linuxuser@tejasbarot.com:~$ mkdir ~/SSHFS

Step 4:- Now Execute command to mount remote directory into Local Directory.

linuxuser@tejasbarot.com:~$ sshfs root@192.168.100.55:/home/linuxuser/ ~/SSHFS. (sshfs username@ssh-server-ip:/directory-you-want-mount <local-directory-where-you-want-to-mount-remote-folder)

Step 5 :- It will ask your for password of user which you have provided.Now Check your ~/SSHFS ( Local Directory where you mounted SSH Remote Folder).You will able to see Your all files into ~/SSHFS

All Comments Accepted.

Enjoy Linux 🙂 Enjoy Remote Mounting 🙂

4 thoughts on “Mount Remote folder using SSH(sshfs) on Fedora 10, Ubuntu 8.10, Ubuntu 9.04”

  1. For this check below things,

    1. SSHD service is running or not
    2. SSH Service is allowed to connect from firewall or not

    Check this and let me know if stil some thing wrong

  2. I tried this by it says that connection was reset my peer but I thought I was sure that the peer was configured to accept connections. I even checked my router to see if that was the problem. NO LUCK! 🙁

Leave a Reply

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