OpenSSH : Use SSHFS2021/08/17 |
It's possible to mount filesystem on another Host via SSH to use SSHFS.
|
|
[1] | Install fuse-sshfs. |
root@dlp:~# apt -y install sshfs
|
[2] | It's possible to use by common users. For example, [debian] user mounts [/home/debian/work] on [node01.srv.world] to local [~/sshmnt]. |
debian@dlp:~$
mkdir ~/sshmnt
# mount with SSHFS debian@dlp:~$ sshfs node01.srv.world:/home/debian/work ~/sshmnt debian@node01.srv.world's password: # password of the user df -hT
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 2.0G 0 2.0G 0% /dev
tmpfs tmpfs 394M 492K 393M 1% /run
/dev/mapper/debian--vg-root ext4 28G 1.1G 26G 4% /
tmpfs tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/vda1 ext2 470M 48M 398M 11% /boot
tmpfs tmpfs 394M 0 394M 0% /run/user/0
node01.srv.world:/home/debian/work fuse.sshfs 28G 1.1G 26G 4% /home/debian/sshmnt
# just mounted
# for unmount, do like follows debian@dlp:~$ fusermount -u ~/sshmnt
|
Sponsored Link |