Harsh Kumar’s Weblog

Mounting Remote SSH folder in Ubuntu

Posted by: harsh1kumar on: November 10, 2008

If you want to mount or unmount a remote SSH folder by just one click, follow these steps.

1.) First you have to
install the ’sshfs’ package. It is the filesystem for SSH. To do this type following in teminal.

sudo apt-get install sshfs

2.) Then make a folder where
you want to mount the remote folder. You can do this.

cd /mnt

sudo mkdir ssh

3.) Change the ownership of this folder to allow you to use this without root permission. Type this in terminal.

sudo chown [username] /mnt/ssh

4.) Now to mount the remote folder use this command.

sshfs [username]@[remote ip]:/[path of remote folder] /mnt/ssh

5.) To unmount use following command.

fusermount -u /media/ssh

To make one click buttons for this process do the following.

1.) Right click on a panel where to want to put the button.

2.) Select Custom Application Launcher and then click Add.

11

3.) Enter the above command to mount folder in the command text box.

2

4.) Do the similar thing for unmount.

31

Tags: ,

Leave a Reply