https://wiki.archlinux.org/index.php/SSHFS
Mounting
In order to be able to mount a directory the SSH user needs to be able to access it. Invoke sshfs to mount a remote directory:
$ sshfs [user@]host:[dir] mountpoint [options]
For example:
$ sshfs myuser@mycomputer:/remote/path /local/path -C -p 9876
Here -p 9876
specifies the port number and -C
enables compression. For more options see the #Options section.
When not specified, the remote path defaults to the remote user home directory. Default user names and options can be predefined on a host-by-host basis in ~/.ssh/config
to simplify the sshfs usage. For more information see OpenSSH#Client usage.
SSH will ask for the password, if needed. If you do not want to type in the password multiple times a day, see SSH keys.
Unmounting
To unmount the remote system:
$ fusermount3 -u mountpoint
Example:
$ fusermount3 -u /local/path
***********************************************************************
IMPORTANT NOTICE
This email may contain confidential and/ or privileged information that belongs to FPT Software. If you are not the intended recipient or might have received this email by accident from an unreliable source, please notify the sender from FPT Software immediately and destroy this email. Keep in mind that any unauthorized copying, editing, disclosure or distribution of the material in this email is strictly forbidden, plus against the law by which FPT Software and involved clients abide.
No comments:
Post a Comment