Mount remote FS using SSH

for different purposes you may need to copy a lot of files from your machine to remote. You can use SFTP or SCP but more beautiful solution  is mounting remote catalogs in your system using ssh. As my favorite Linux is Debian, so all examples are for this distr.


1. installation SSHFS support

apt-get install sshfs


modprobe fuse


3. setup permissions

adduser username fuse

chown root:fuse /dev/fuse


4. mount remote catalogs

mkdir ~/remoteserver
sshfs username@host:/path ~/remoteserver


and for unmounting you can use this command


umount ~/remoteserver

No comments: