Linuxシステム-sshfsマウント読み取り:ピアエラーソリューションによる接続リセット



Linux System Sshfs Mount Read



目次

I.概要



2つの一般的な使用法

発生した3つの問題



4.問題の場所と解決策


次のコマンドを使用してマウントを試みます。問題を追跡できます。

sudo sshfs root@xxxxx:/ /home/barry/armbian/mntsysroot_arm32/ -o debug -o sshfs_debug

実行後、次の出力があります。



SSHFS version 2.5 FUSE library version: 2.9.4 nullpath_ok: 0 nopath: 0 utime_omit_ok: 0 executing @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:DaNpvGDbPRvXRvCDApXUMss56ufPqZux/DDEZ7UxitQ. Please contact your system administrator. Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /root/.ssh/known_hosts:2 remove with: ssh-keygen -f '/root/.ssh/known_hosts' -R 192.168.50.191 ECDSA host key for 192.168.50.191 has changed and you have requested strict checking. Host key verification failed. read: Connection reset by peer

ssh公開鍵認証が原因であることがわかります。上記のコマンドに従って、対応するIPによって保存されたキーを次の前にクリアします。

ssh-keygen -f '/root/.ssh/known_hosts' -R 192.168.50.191

次に、前のマウントコマンドを入力し、プロンプトに従ってパスワードを入力します。操作後、マウントは成功します。

sudo sshfs root@xxxxx:/ /home/barry/armbian/mntsysroot_arm32/ -o transform_symlinks -o allow_other