今天在學(xué)校學(xué)習(xí)嵌入式開發(fā)的時候,購買了一個華為云服務(wù)器,但是使用mac的終端直接連接公網(wǎng)ip,卻報錯
xuwenjie@xuwenjiedeMacBook-Pro ~ % ssh root@xxx.xxxx.xxx.xxx
kex_exchange_identification: read: Connection reset by peer
Connection reset by xxx.xxx.xxx.xxxx port 22
剛開始輾轉(zhuǎn)反側(cè)在各個國內(nèi)搜索引擎處,處理方法均是打開端口,關(guān)閉防火墻,但是畢竟華為云是一臺新的服務(wù)器,按道理應(yīng)該什么都沒有,所以不可能存在防火墻的問題,而且自己在服務(wù)器的安全配置入口都打開了各個端口,在本地mac端發(fā)現(xiàn)也可以ping通,但是死活就是無法使用ssh,重啟了服務(wù)端的ssh service也查看了對應(yīng)的黑名單ip。最后都不能解決,在最后查看stack overflow 的時候看到一個哥們的評論
發(fā)現(xiàn)了他使用家里wifi 無法ssh,此時我醍醐灌頂,之前使用遠(yuǎn)程控制軟件todesk的時候也是無法使用校園網(wǎng)連接而是用的hotspot,發(fā)現(xiàn)是因為學(xué)校屏蔽了22端口。
然后換了網(wǎng)絡(luò)變成手機熱點,完美解決文章來源:http://www.zghlxwxcb.cn/news/detail-589703.html
Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-169-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Sat Mar 11 10:30:21 CST 2023
System load: 0.0 Processes: 102
Usage of /: 12.9% of 39.12GB Users logged in: 0
Memory usage: 12% IP address for eth0: 192.168.0.150
Swap usage: 0%
* Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s
just raised the bar for easy, resilient and secure K8s cluster deployment.
https://ubuntu.com/engage/secure-kubernetes-at-the-edge
大家如果不是在校園網(wǎng)的環(huán)境下可以查看該網(wǎng)站的其他解決方式:Connection reset by peer Connection reset by ip文章來源地址http://www.zghlxwxcb.cn/news/detail-589703.html
到了這里,關(guān)于關(guān)于無法使用SSH連接遠(yuǎn)程服務(wù)器“Connection reset by peer Connection reset by ip”的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!