OpenSSH : Use SSHFS2022/04/25 |
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 any user. For example, [ubuntu] user mount [/home/ubuntu/work] on [node01.srv.world] to local [~/sshmnt]. |
ubuntu@dlp:~$
mkdir ~/sshmnt
# mount with SSHFS ubuntu@dlp:~$ sshfs node01.srv.world:/home/ubuntu/work ~/sshmnt ubuntu@node01.srv.world's password: # password of the user df -hT
Filesystem Type Size Used Avail Use% Mounted on
tmpfs tmpfs 393M 1008K 392M 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv ext4 14G 5.4G 7.6G 42% /
tmpfs tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/vda2 ext4 2.0G 125M 1.7G 7% /boot
tmpfs tmpfs 393M 4.0K 393M 1% /run/user/0
node01.srv.world:/home/ubuntu/work fuse.sshfs 14G 5.4G 7.6G 42% /home/ubuntu/sshmnt
# just mounted
# for unmount, do like follows ubuntu@dlp:~$ fusermount -u ~/sshmnt
|
Sponsored Link |