User:Girts:Linux Notes

From DiLab
Revision as of 08:52, 24 March 2009 by Girts (talk | contribs) (How to mount SSH file system in Ubuntu)
Jump to: navigation, search

How to mount SSH file system in Ubuntu

From this site.

To mount remote director /home/share from host example.com to local folder /mnt/share, using ssh user remuser and local user locuser:

sudo apt-get install sshfs
sudo mkdir /media/share
sudo chown locuser /media/share
# local user must belong to the fuse group
sudo adduser locuser fuse
sshfs remuser@example.com:/home/share /media/share

Enter ssh user password when asked.