Tags Archives: sshfs

Mounting Remote File Systems With SSHFS

In some cases an NFS mount may not be possible, for example, when using a client machine connected to an external wifi system whose IP address the NFS server does not recognize for security reasons. 

 

One way round this is to deploy sshfs.

 

 

First, you need to install sshfs on the client.

 

For ubuntu/debian:

 

sudo apt-get install sshfs

 

Then, create a local directory for the mount. Eg

 

/home/kevin/DATA

 

then use sshfs to mount the file system locally with the following command.

 

sshfs -o allow_other,default_permissions root@gemini:/home/kevin/DATA /media/kevin/DATA

 

Result:

 

root@asus:/home/kevin# sshfs -o allow_other,default_permissions root@gemini:/home/kevin/DATA /media/kevin/DATA
root@asus:/home/kevin# df
root@gemini:/home/kevin/DATA 54082924 39336424 11846608 77% /media/kevin/DATA
root@asus:/#

 

 

Continue Reading