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.
[itsolutions@ask4itsolutions.com]$ su – root

Step 2 :- Execute Following command to install SSHFS on your Fedora Box.
[root@ask4itsolutions.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@ask4itsolutions.com]# su – itsolutions

[itsolutions@ask4itsolutions.com]$ mkdir ~/SSHFS

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

[itsolutions@ask4itsolutions.com]$ sshfs root@192.168.100.55:/home/itsolutions/ ~/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.
itsolutions@ask4itsolutions.com:~$ su – root

Step 2 :- Execute Following command to install SSHFS on your Fedora Box.
root@ask4itsolutions.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@ask4itsolutions.com:~# su – itsolutions

itsolutions@ask4itsolutions.com:~$ mkdir ~/SSHFS

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

itsolutions@ask4itsolutions.com:~$ sshfs root@192.168.100.55:/home/itsolutions/ ~/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 :)

Content Protection by DMCA.com

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


5 Comments »

 
 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


− 4 = one