扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
问题
使用SSH连接到SVPS的SSH接口报错:
connect: No error
解决方案
当使用ssh命令连接到SVPS的SSH接口的时候,收到了如下的错误:
[luoyu@cc2 luoyu]$ ssh vzagent0@218.244.128.71
****USAGE WARNING****
This is a private computer system. This computer system, including all
related equipment, networks, and network devices (specifically including
Internet access) are provided only for authorized use. This computer system
may be monitored for all lawful purposes, including to ensure that its use
is authorized, for management of the system, to facilitate protection against
unauthorized access, and to verify security procedures, survivability, and
operational security. Monitoring includes active attacks by authorized entities
to test or verify the security of this system. During monitoring, information
may be examined, recorded, copied and used for authorized purposes. All
information, including personal information, placed or sent over this system
may be monitored.
Use of this computer system, authorized or unauthorized, constitutes consent
to monitoring of this system. Unauthorized use may subject you to criminal
prosecution. Evidence of unauthorized use collected during monitoring may be
used for administrative, criminal, or other adverse action. Use of this system
constitutes consent to monitoring for these purposes.
vzagent0@218.244.128.71's password:
!connect: No error
Connection to 218.244.128.71 closed.
这个问题一般是由于SVPS内部的ssh服务和vz相关服务有问题造成的
而SSH服务通常是和硬件节点的NAT模式绑定在一起的,所以就造成了一个ssh能连接的假象
但即便输入正确的密码,也会报告!connect: No error之类的错误
这个时候只要重启SVPS即可修复。
登陆到硬件节点,执行vzctl restart 1
等待几秒后,SVPS重启完成,再次测试连接,问题修复。
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者