Ubuntu 16.04
Sponsored Link

Mount with SSHFS
2016/07/07
 
It's possible to mount filesystem on another Host via SSH to use SSHFS.
[1] Install SSHFS.
root@dlp:~#
apt-get -y install sshfs
[2] For example, mount /home/ubuntu on another Host with "ubuntu" user.
# create a directory for mount

ubuntu@dlp:~$
mkdir ~/sshmnt
# mount with SSHFS

ubuntu@dlp:~$
sshfs 10.0.0.31:/home/ubuntu ~/sshmnt

ubuntu@10.0.0.31's password:    
# SSH password

ubuntu@dlp:~$
df -hT

Filesystem                  Type        Size  Used Avail Use% Mounted on
udev                        devtmpfs    2.0G     0  2.0G   0% /dev
tmpfs                       tmpfs       396M  5.6M  390M   2% /run
/dev/mapper/ubuntu--vg-root ext4         25G  2.5G   22G  11% /
tmpfs                       tmpfs       2.0G     0  2.0G   0% /dev/shm
tmpfs                       tmpfs       5.0M     0  5.0M   0% /run/lock
tmpfs                       tmpfs       2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/vda1                   ext2        472M  193M  255M  44% /boot
tmpfs                       tmpfs       396M     0  396M   0% /run/user/0
10.0.0.31:/home/ubuntu      fuse.sshfs   25G  2.5G   22G  11% /home/ubuntu/sshmnt
# just mounted
# for unmount, do like follows

ubuntu@dlp:~$
fusermount -u ~/sshmnt
Matched Content
 
Tweet