且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ssh 服务器连接到主机 xxx 端口 22:在 linux-ubuntu 上连接超时

更新时间:2022-06-09 10:07:04

以下几点可能会阻止您连接到 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).