fatesses 2019-02-28 17:55 采纳率: 50%
浏览 5816
已采纳

ssh: connect to host 167.179.64.111 port 22: Connection timed out

今天想试着建立一个ss,结果第一步就出现了问题,求问这个该怎么解决

167.179.64.111这个ip在电脑上可以ping成功

$ ssh root@167.179.64.111
ssh: connect to host 167.179.64.111 port 22: Connection timed out

$ ssh -v root@167.179.64.111
OpenSSH_7.9p1, OpenSSL 1.1.1a  20 Nov 2018
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 167.179.64.111 [167.179.64.111] port 22.
debug1: connect to address 167.179.64.111 port 22: Connection timed out
ssh: connect to host 167.179.64.111 port 22: Connection timed out
  • 写回答

5条回答

  • 陈寿辉 2019-02-28 18:50
    关注

    1、确认对方的sshd服务是否已正确启动
    2、确认端口号是不是22
    3、直接进入对方的shell查看sshd_conf

    能ping通只是代表IP层是通的,不代表sshd服务正确启动且配置正确。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?