SSHFS is a filesystem client based on the SSH File Transfer Protocol.
[Install]
localhost ~ # emerge sys-fs/sshfs-fuse in gentoo
localhost ~ # apt-get install sshfs in ubuntu/debian
localhost ~ # ./configure && make && make install manual way
[Mount]
localhost ~ # modprobe fuse if you dont have fuse module loaded
localhost ~ # sshfs user@site.com: /mnt/mountpoint use “-o allow_other” for share between multiple users
[Umount]
localhost ~ # fusermount -u /mnt/mountpoint
Thats it, now you can access with any file explorer like konqueror, nautilus…..we can do almost everything like edit source code, create, delete….
Adding on fstab
sshfs#USERNAME@REMOTE_HOST: REMOTE_PATH MOUNT_POINT fuse SSHFS_OPTIONS 0 0
or Making alias
alias mHost=’modprobe fuse;sshfs user@site.com: /mnt/mountpoint -o allow_other’
More info at http://fuse.sourceforge.net/
No comments:
Post a Comment