CentOS Stream 8
Sponsored Link

OpenSSH : Use SSHFS2021/02/22

 
It's possible to mount filesystem on another Host via SSH to use SSHFS.
[1] Install fuse-sshfs.
# install from PowerTools (disabled by default)

[root@dlp ~]#
dnf --enablerepo=powertools -y install fuse-sshfs
[2] It's possible to use by common users.
For example, [cent] user mount [/home/cent/work] on [node01.srv.world] to local [~/sshmnt].
[cent@dlp ~]$
mkdir ~/sshmnt
# mount with SSHFS

[cent@dlp ~]$
sshfs node01.srv.world:/home/cent/work ~/sshmnt

cent@node01.srv.world's password:
[cent@dlp ~]$
df -hT

Filesystem                       Type        Size  Used Avail Use% Mounted on
devtmpfs                         devtmpfs    3.8G     0  3.8G   0% /dev
tmpfs                            tmpfs       3.8G     0  3.8G   0% /dev/shm
tmpfs                            tmpfs       3.8G  8.6M  3.8G   1% /run
tmpfs                            tmpfs       3.8G     0  3.8G   0% /sys/fs/cgroup
/dev/mapper/cs-root              xfs          26G  2.1G   24G   9% /
/dev/vda1                        xfs        1014M  197M  818M  20% /boot
tmpfs                            tmpfs       777M     0  777M   0% /run/user/0
node01.srv.world:/home/cent/work fuse.sshfs   26G  2.1G   24G   8% /home/cent/sshmnt
# just mounted

# for unmount, do like follows

[cent@dlp ~]$
fusermount -u ~/sshmnt
Matched Content