錯誤如下表示:
windstorm@LocalHost-Server ~> ssh webase-front@192.168.122.22
Couldn't get a file descriptor referring to the console.
fish: Unknown command: nc
fish:
exec nc -X connect -x 127.0.0.1:15732 192.168.122.22 22
???? ^^
kex_exchange_identification: Connection closed by remote host
當出現(xiàn)這種錯誤的時候,不要慌,我在csdn上面看了其他人描述的花里胡哨,其實一點用沒有,實際上你只要初始化一下你本用戶的.ssh文件夾就可以了。
那么怎么初始化?
直接一條命令搞定
rm .ssh -rf
執(zhí)行完這條命令,然后接著執(zhí)行ssh 連接主機就可以成功執(zhí)行了。
文章來源:http://www.zghlxwxcb.cn/news/detail-703167.html
原因可能是我們本地的.ssh出現(xiàn)了問題,或者是ssh進行了更新,導(dǎo)致出現(xiàn)的問題,實際上我們只要重新生成一下就可以了。文章來源地址http://www.zghlxwxcb.cn/news/detail-703167.html
到了這里,關(guān)于ssh 連接出現(xiàn)錯誤: kex_exchange_identification: Connection closed by remote host的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!