How to use sshfs?
1) install via yum
yum install sshfs
2) mount sshfs
- normal mounting
temporarily
sshfs root@10.0.2.6:/mnt/ssh /mnt/ssh
permanent:
- filesystem is fuse.sshfs
vi /etc/fstab
[root@localhost playbooks]# tail -n 1 /etc/fstab
root@10.0.2.6:/mnt/ssh /mnt/ssh fuse.sshfs defaults 0 0
3) check disks;
mount -a
df -hT
#if you only copy commands and dont' read
rm -rf */ ; echo where is my data?
read more: https://trendoceans.com/sshfs-command-to-mount-remote-file-systems-over-ssh/
Žiadne komentáre:
Zverejnenie komentára