今天早上来登陆自己的阿里云,ssh 登陆上就退出,
Welcome to aliyun Elastic Compute Service!
[root@iZ25jkee33mZ ~]#
Connection closed by foreign host.
具体确切原因没有找到,怀疑为公司对访问外网22端口做了限制。
解决:
修改阿里云服务器上ssh 配置,添加9988端口。
vim /etc/ssh/sshd_config
Port 9988
service sshd restart
登陆时使用9988端口即可。