• 欢迎访问db1024网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏db1024吧

Hostwinds没被墙但是SSH连接不上的解决办法

主机教程 Liam 1年前 (2019-05-13) 1566次浏览 8个评论 扫描二维码

今天有个朋友购买了Hostwinds,发现SSH连接不上,但是通过https://ipcheck.need.sh/网站监测国内国外都没有被屏蔽,如下图所示各项都是正常的,但是怎么会连接不上呢?

Hostwinds没被墙但是SSH连接不上的解决办法

那为什么SSH却连不上呢?经过分析因为SSH连接使用22端口,猜想IP没有被屏蔽,那估计是SSH连接端口22被屏蔽了,所以只要我们修改个端口就可以,但是我们ssh连接不上,怎么修改端口呢?不要忘了Hostwinds还有后台,使用后台的VNC可以通过内网修改端口,我们现在就具体说说方法。

通过 登录Hostwinds的后台管理面板,如下图所示:

Hostwinds没被墙但是SSH连接不上的解决办法

然后点击绿色按钮进行管理

Hostwinds没被墙但是SSH连接不上的解决办法

点击“Get VNC”

Hostwinds没被墙但是SSH连接不上的解决办法

然后输入用户名root和密码,然后按回车,如下图所示:

Hostwinds没被墙但是SSH连接不上的解决办法

然后输入下面的命令:

vi /etc/ssh/sshd_config

Hostwinds没被墙但是SSH连接不上的解决办法

先输入i,进入编辑状态,然后去掉#port 22的注释,然后随便修改个值,然后按ESC,然后输入”:”+”wq!”回车退出保持,如下图所示:

Hostwinds没被墙但是SSH连接不上的解决办法

然后输入如下命令重启ssh

/etc/init.d/sshd restart

这样就可以使用新的端口登录ssh了,注意ssh登录的时候要修改默认端口22为上面修改的端口。

以上就是 Hostwinds没被墙但是SSH连接不上的解决办法,希望可以帮助到ssh连接不上Hostwinds的朋友。


db1024 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Hostwinds没被墙但是SSH连接不上的解决办法
喜欢 (0)
关于作者:
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(8)个小伙伴在吐槽
  1. I do accept as true with all of the concepts you have introduced for your post. They are really convincing and can certainly work. Nonetheless, the posts are very quick for novices. May just you please prolong them a bit from subsequent time? Thank you for the post.
    black mass2020-08-31 13:17 回复 Windows XP | 360浏览器 JK
  2. I'm excited to find this page. I need to to thank you for your time for this wonderful read!! I definitely enjoyed every part of it and i also have you bookmarked to see new stuff in your site.
    cheap flights2020-08-27 16:13 回复 Mac OS X | Chrome 52.0.2777.85
  3. Great goods from you, man. I have understand your stuff previous to and you're just too magnificent. I actually like what you have acquired here, certainly like what you're stating and the way in which you say it. You make it enjoyable and you still care for to keep it sensible. I can't wait to read far more from you. This is really a terrific web site. cheap flights 32hvAj4
    cheap flights2020-08-27 02:58 回复 Mac OS X | Firefox浏览器 62.0
  4. Greetings! Quick question that's totally off topic. Do you know how to make your site mobile friendly? My website looks weird when browsing from my iphone 4. I'm trying to find a theme or plugin that might be able to correct this problem. If you have any recommendations, please share. With thanks!
    cheap flights2020-08-26 21:08 回复 Linux | Chrome 67.0.3396.87
  5. Thanks for sharing your thoughts on 主机教程. Regards 3gqLYTc cheap flights
    cheap flights2020-08-26 10:05 回复 Windows XP | 360浏览器 JK
  6. I like the valuable info you supply in your articles. I'll bookmark your weblog and take a look at once more here regularly. I'm slightly certain I will be informed lots of new stuff proper right here! Good luck for the following!
    web hosting providers2020-08-14 21:10 回复 Linux | 未知浏览器
  7. Thank you for sharing your info. I really appreciate your efforts and I am waiting for your further write ups thanks once again.
    best hosting2020-08-14 19:31 回复 Mac OS X | Firefox浏览器 56.0.4
  8. Great post. I was checking constantly this blog and I am impressed! Extremely useful information specifically the last part :) I care for such info a lot. I was seeking this particular information for a very long time. Thank you and best of luck.
    web hosting company2020-08-11 03:58 回复 Windows XP | 360浏览器 JK