我有一个物联网设备,我正在处理。如果我需要修改任何文件,我将无法进行物理访问,因此我需要能够可靠地通过SSH进入该领域。我有一个使用以下行来打开一个SSH隧道启动脚本:SSH隧道无法重新打开。 Permission Denied
sshpass -p 'XXXXXX' ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -fN -R 7000:localhost:22 [email protected]
这是成功地打开一个隧道,但如果电源被中断,我不能再打开隧道不改变端口号。
这里是-vvv输出:在Intel爱迪生
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。