ssh 服务器连接到主机 xxx 端口 22:在 linux-ubuntu 上连接超时 [英] ssh server connect to host xxx port 22: Connection timed out on linux-ubuntu

查看:81
本文介绍了ssh 服务器连接到主机 xxx 端口 22:在 linux-ubuntu 上连接超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过 ssh 连接到远程服务器,但连接超时.

I am trying to connect to remote server via ssh but getting connection timeout.

我运行了以下命令

ssh testkamer@test.dommainname.com

并得到以下结果

ssh:连接到主机 testkamer@test.dommainname.com 端口 22:连接超时

但是如果尝试连接到另一台远程服务器,那么我可以成功登录.

but if try to connect on another remote server then I can login successfully.

所以我认为ssh没有问题,其他人尝试使用相同的登录名和密码登录他可以成功登录服务器.

So I think there is no problem in ssh and other person try to login with same login and password he can successfully login to server.

请帮帮我
谢谢.

Please help me
Thanks.

推荐答案

以下几点可能会阻止您连接到 Linode 实例:

Here are a couple of things that could be preventing you from connecting to your Linode instance:

  1. DNS 问题:如果您用来连接到您的计算机的计算机远程服务器没有正确解析 test.kameronderdehamer.nl那么您将无法联系到您的主机.尝试使用连接分配给您的 Linode 的公共 IP 地址并查看它是否有效(例如ssh user@123.123.123.123).如果可以使用公网IP连接但不使用可以确认您拥有的主机名域名解析有问题.

  1. DNS problem: if the computer that you're using to connect to your remote server isn't resolving test.kameronderdehamer.nl properly then you won't be able to reach your host. Try to connect using the public IP address assigned to your Linode and see if it works (e.g. ssh user@123.123.123.123). If you can connect using the public IP but not using the hostname that would confirm that you're having some problem with domain name resolution.

网络问题:有可能是一些网络问题阻止您建立连接到您的服务器.例如,可能存在配置错误您和主机之间路径中的路由器,或者您可能遇到丢包.虽然这并不常见,但它有用 Linode 发生在我身上好几次,可能很烦人.以防万一,最好检查一下.你可以看看在 使用 MTR 诊断网络问题(来自 Linode图书馆).

Network issues: there might be some network issues preventing you from establishing a connection to your server. For example, there may be a misconfigured router in the path between you and your host, or you may be experiencing packet loss. While this is not frequent, it has happenned to me several times with Linode and can be very annoying. It could be a good idea to check this just in case. You can have a look at Diagnosing network issues with MTR (from the Linode library).

这篇关于ssh 服务器连接到主机 xxx 端口 22:在 linux-ubuntu 上连接超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆