Mount with SSHFS2018/11/27 |
It's possible to mount filesystem on another Host via SSH to use SSHFS.
|
|
[1] | Install SSHFS. |
root@dlp:~# apt -y install sshfs
|
[2] | It's possible to run with any common user. For example, mount /home/ubuntu on another Host with [ubuntu] user. |
# mount with SSHFS ubuntu@dlp:~$ sshfs 10.0.0.31:/home/ubuntu ~/sshmnt ubuntu@10.0.0.31's password: # SSH password df -hT Filesystem Type Size Used Avail Use% Mounted on udev devtmpfs 8.8G 0 8.8G 0% /dev tmpfs tmpfs 1.8G 636K 1.8G 1% /run /dev/mapper/ubuntu--vg-root ext4 78G 1.9G 72G 3% / tmpfs tmpfs 8.9G 0 8.9G 0% /dev/shm tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs tmpfs 8.9G 0 8.9G 0% /sys/fs/cgroup tmpfs tmpfs 1.8G 0 1.8G 0% /run/user/0 /dev/mapper/vg_volume01-lv_volume01 ext4 79G 4.3G 71G 6% /home 10.0.0.31:/home/ubuntu fuse.sshfs 29G 1.9G 26G 7% /home/ubuntu/sshmnt # just mounted
# for unmount, do like follows ubuntu@dlp:~$ fusermount -u ~/sshmnt
|
Sponsored Link |