sshfs
sshfs 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.[1]
Documentation
- man 1 'sshfs' [EN]
Syntax
sshfs [USER@]HOST:[DIRECTORY] MOUNTPOINT [PARAMETER ...]
Parameters
- sshfs parameters
-
- -o 'follow_symlinks'
- Follow symlinks on the server.
- -o 'port=PORT'
- Use port instead of 22.
- -o 'reconnect'
- Reconnect to server.
- -p PORT
- Equivalent to -o 'port=PORT'
- osfuse parameters
-
- -o 'volname=NAME'
- Specify a name for the osfuse volume being mounted.
- -o 'rdonly'
- Mount a osfuse file system in read-only mode.
- -r
- Equivalent to -o 'rdonly'
Examples
- Mount a remote directory
sshfs 'alex@neon.raysoft.loc:/home/alex' '/mnt' \
-o 'follow_symlinks' -o 'reconnect' -o 'rdonly' -o 'volname=home-alex'
References
- ↑ man 1 'sshfs'