使用sshfs远程挂载目录时提示的错误:
[root@centos7 ~]# sshfs 10.0.0.8:/data/ /mnt/
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
[root@centos7 ~]#
解决方法如下:
[root@centos7 ~]# sshfs 10.0.0.8:/data/ /mnt/ -o nonempty
The authenticity of host '10.0.0.8 (10.0.0.8)' can't be established.
ECDSA key fingerprint is SHA256:r4COfaGRW6a9yYrF2tQRnKeZbPJj1UKfJyBBfliBJPw.
ECDSA key fingerprint is MD5:d5:15:30:7a:f6:d9:d6:4b:4d:e0:28:13:9b:ce:4f:ac.
Are you sure you want to continue connecting (yes/no)? yes
root@10.0.0.8's password:
[root@centos7 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 485832 0 485832 0% /dev
tmpfs 497888 0 497888 0% /dev/shm
tmpfs 497888 7764 490124 2% /run
tmpfs 497888 0 497888 0% /sys/fs/cgroup
/dev/mapper/centos-root 104806400 1673772 103132628 2% /
/dev/sda1 1038336 139352 898984 14% /boot
/dev/mapper/centos-data 52403200 32992 52370208 1% /data
tmpfs 99580 0 99580 0% /run/user/0
10.0.0.8:/data/ 104806400 2099508 102706892 3% /mnt
[root@centos7 ~]#