| Mount Filesystem or Folder Via/Using SSH |
|
|
|
| How To - SSH | |||
| Written by Christian Foronda | |||
| Thursday, 16 September 2010 11:55 | |||
|
This is a filesystem client based on the SSH File Transfer Protocol. Since most SSH servers already support this protocol it is very easy to set up: i.e. on the server side there's nothing to do. On the client side mounting the filesystem is as easy as logging into the server with ssh. Installation on Redhat based systems: # yum install fuse-sshfs Installation on Debian based systems: # aptitude install sshfs Usage: # sshfs hostname: mountpoint To mount: # sshfs username@server:/home/chr1x2 /path/to/mount/point To unmount: # fusermount -u /path/to/mount/point Setting up in fstab. Add the following: Note: You have to setup passwordless login for this to work. # vi /etc/fstab sshfs#user@serverip:/home/user /mnt/sshfs/homebox fuse comment=sshfs,noauto,users,exec,uid=1000,gid=1000,allow_other,reconnect 0 0 Common errors: $ sshfs server:/path/ /mnt/path/ fuse: failed to exec fusermount: Permission denied Fix: # chmod +x /bin/fusermount Reference: Similar articles
|
|||
| Last Updated on Friday, 12 November 2010 11:32 |


