ssh port 22 connection refused Posted on 2025-01-23 Edited on 2025-11-23 In 技术分享 , 学习笔记 这是你的正文内容你可以在这里开始用 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,然后重新连接就好了。