rclone 掛載sftp 連線過慢, 因此先用sshfs擋著先
RockyLinux
dnf --enablerepo=powertools -y install fuse-sshfs
以下為自動掛載方式,(這樣不是很安全,用rsa-key方式比較好)
echo 密碼| sshfs -o reconnect -o allow_other -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no 帳號@主機:/來源目錄/ 掛載目錄 -o workaround=rename -o password_stdin
增加效能
-o Ciphers=aes128-ctr -o Compression=no -o ServerAliveCountMax=100 -o ServerAliveInterval=15
傳輸過程若出現 transport endpoint is not connected 的錯誤
請試著修改 /etc/fuse.conf , 啟用 user_allow_other 選項
![](https://i0.wp.com/kafeiou.pw/wp-content/uploads/2022/05/image-5.png?resize=205%2C71&ssl=1)