私は作業しているIoTデバイスがあります。私はファイルを修正する必要がある場合、私は物理的なアクセスを持っていないので、フィールドに入ったらそれを確実にSSHできるようにする必要があります。私は、SSHトンネルを開くために次の行を使用して起動スクリプトを持っている:SSHトンネルは再オープンできません。許可が拒否されました
sshpass -p 'XXXXXX' ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -fN -R 7000:localhost:22 [email protected]
これは、トンネルを開くことに成功するが、電源が遮断された場合、私はもはや、ポート番号を変更せずにトンネルを開くことができません。ここで
は-vvvと出力されます
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/id_rsa
debug3: no such identity: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug3: no such identity: /root/.ssh/id_dsa
debug1: Trying private key: /root/.ssh/id_ecdsa
debug3: no such identity: /root/.ssh/id_ecdsa
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
debug3: packet_send2: adding 48 (len 61 padlen 19 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
私はインテルエジソン上でDebianを使用しています。