Mount with SSHFS2016/01/27 |
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. |
# 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 2.0G 4.0K 2.0G 1% /dev tmpfs tmpfs 396M 356K 395M 1% /run /dev/mapper/tmp--vg-root ext4 26G 1.9G 23G 8% / none tmpfs 4.0K 0 4.0K 0% /sys/fs/cgroup none tmpfs 5.0M 0 5.0M 0% /run/lock none tmpfs 2.0G 0 2.0G 0% /run/shm none tmpfs 100M 0 100M 0% /run/user /dev/vda1 ext2 236M 97M 127M 44% /boot 10.0.0.51:/home/ubuntu fuse.sshfs 26G 1.9G 23G 8% /home/ubuntu/sshmnt # just mounted
# for unmount, do like follows ubuntu@dlp:~$ fusermount -u ~/sshmnt
|
|