secure networking over the internet

Thursday, 21 May 2009 5:15 pm by noel
posted in tech | tags: , , ,

i use sshfs (secure shell filesystem) to connect to a remote drive or directory over the internet. what’s so cool about this program is that it presents to the user the remote drive or directory as a folder in the local computer–like it was just another folder in the user’s computer. all communication between the local and remote computer is encrypted.

to mount a remote directory to the local computer:

sshfs user@host:remotedir mountpoint

example, to mount the root directory (/) of the remote host computer with an ip address of 192.168.20.25 as the user root issue the following command on the console:

sshfs root@192.168.20.25:/ /home/noel/localmountpoint

where:
localmountpoint: is an empty subdirectory under noel’s home folder in the local computer

you’d then see a folder named localmountpoint on your desktop containing the files and folders of the remote computer. expect access to be slow if your internet connection is slow.

to unmount the remote directory

fusermount -u localmountpoint

if you don’t have sshfs installed, you can easily (apt-)get it from the repositories:

sudo apt-get install sshfs

links:
secure shell (ssh)
fuse homepage

note: this post is an expansion of my previous post about sshfs

related posts (maybe)

leave a reply