ssh port 22 connection refused

这是你的正文内容

你可以在这里开始用 Markdown 语法撰写文章内容。

链接示例

加粗文字示例
在aws ec2上部署实例后ssh无法连接问题
症状:
1,从国内主机上ssh hostname,Connection closed by xx.xx.xx.xx port 22,或kex_exchange_identification: Connection closed by remote host
解决办法:
在ec2实例上将ssh监听端口从22改成其他,如23456,然后重新连接就好了。