ssh: connect to host 119.78.226.156 port 22: Connection refused
时间: 2023-09-22 11:10:17 浏览: 82
回答: 报错信息"ssh: connect to host 119.78.226.156 port 22: Connection refused" 表示连接到主机119.78.226.156的22端口被拒绝。通常情况下,SSH服务默认监听22端口。可能的原因是SSH服务未启动或者被配置为监听了其他端口。如果你是系统管理员,可以检查SSH服务器的配置文件"/etc/ssh/sshd_config",查找"Port"关键字,确认正确的端口号。如果你不是管理员,请联系管理员咨询正确的端口号。此外,还可以检查主机的防火墙设置,确保允许SSH连接通过。如果以上方法都没有解决问题,那可能是另外的错误引起的,比如网络连接问题或者服务不可用。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [ssh: connect to host localhost port 22: Connection refused解决方法](https://blog.csdn.net/Bill_yin22/article/details/121551639)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [spark任务常见错误](https://blog.csdn.net/duanbaba/article/details/125172461)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文