network error connection timed out putty что делать

PuTTY возвращает ошибку сети: время ожидания истекло

Я использую приложение под названием PuTTY для удаленного доступа к серверу.

Я могу использовать его из своей локальной библиотеки и многих других библиотек вокруг меня (а также из Starbucks, Panera и т. Д.), И это работает.

Но я попытался использовать его сегодня из дома моего отца так же, как и раньше, и я получаю ошибку:

Что может быть не так?

Это означает, что PuTTY не может установить соединение с сервером.

Одновременное отключение электричества в моей квартире и в студенческом городке было причиной.

PuTTY подключается к SecureShell.

Да, это, вероятно, маршрутизатор / подключение к Интернету.

Это редко, но некоторые маршрутизаторы высокого класса имеют возможность сбрасывать исходящие соединения.

Я не знаком с Verizon, но, возможно, у них есть какой-то прокси, через который вы подключаетесь к Интернету, и этот прокси не разрешает исходящее соединение.

У меня была похожая проблема на работе. Рабочий прокси блокировал порт 22 (стандартный порт для SSH). Я изменил его на 443, который является портом HTTPS, и это позволило мне подключиться к моему серверу. Чтобы сделать это изменение, вы должны изменить /etc/ssh/sshd_config и изменить порт по умолчанию с 22 на 443, а затем подключиться через него. Но для этого нужно сначала подключиться к серверу, что, на мой взгляд, невозможно. Или вы можете очень быстро запустить ближайшую библиотеку, изменить файл конфигурации SSH для прослушивания порта HTTPS вместо стандартного порта 22 и вернуться домой.

Но я думаю, что вам лучше всего позвонить в службу поддержки Verizon и спросить их об этом.

Источник

Истекло время ожидания подключения из-за сетевой ошибки Putty [Исправлено]

PuTTy, являясь бесплатным терминальным приложением с открытым исходным кодом, позволяет системному администратору входить на удаленный сервер через SSH. Это небольшое, но очень стабильное приложение также используется для безопасной передачи файлов через SCP и SFTP.

У меня были свои проблемы с PuTTy, но в большинстве случаев ошибки вызываются небольшими, но не столь очевидными проблемами.

Если вы один из тех, кто пытается диагностировать ошибку отказа в соединении, эта статья поможет вам устранить ошибку.

В этой статье я перечислил все возможные решения проблемы отказа в подключении PuTTy. Обязательно попробуйте каждый из них, пока проблема не будет решена.

Что вызывает ошибку сети: ошибки отказа в подключении?

Ошибка может возникнуть по нескольким причинам. Некоторые из них перечислены ниже.

Вот некоторые из распространенных причин сетевой ошибки: ошибка отказа в соединении в PuTTy. Ниже приведены некоторые общие решения, с помощью которых вы можете попытаться решить проблему.

Как исправить ошибки «Ошибка сети: отказ в подключении»?

Исправление 1. Обратитесь к системному / сетевому администратору.

Если вы не являетесь системным администратором, лучше сначала обратиться к системному администратору.

Системные администраторы могут изменять некоторые разрешения в маршрутизаторе, если они время от времени замечают попытку подключения какого-либо неизвестного устройства или по другим причинам безопасности.

В этом случае вы можете легко решить проблему, связавшись с системным администратором, прежде чем пытаться решить проблему на своей стороне. Пока вы занимаетесь этим, вы также можете рассказать ему о том, как NetCrunch Tools может помочь в его повседневных задачах.

Исправление 2: проверьте, включено ли соединение SSH

Например, если вы используете Raspberry Pi для подключения через свой компьютер, убедитесь, что в конфигурации включен ssh. Вот как это сделать.

В Raspberry Pi перейдите в Configuration> Interfaces> ssh. Включите службу и попробуйте еще раз.

Настройки могут меняться в зависимости от используемого вами устройства, но конечным результатом должно быть рабочее сетевое соединение через PuTTy.

Исправление 3. Убедитесь, что записи вашего домена указывают на сервер.

Если вы работаете с новым сервером и новым доменом, ошибка может возникнуть из-за неверного адреса DNS-сервера в настройках домена. Все регистраторы доменов позволяют вам указать ваш домен любому стороннему хостинг-провайдеру, использующему сервер имен.

Если вы только установили сервер и не изменили сервер имен, вы можете получить сетевую ошибку: ошибка отказа в соединении.

Чтобы решить эту проблему, войдите в систему своего поставщика доменного имени и проверьте настройки сервера имен, чтобы узнать, указывают ли серверы имен на вашего хостинг-провайдера.

Исправление 4: проверьте IP-адрес в черном и белом списках на сервере

По соображениям безопасности системный администратор может разрешить подключение только с компьютеров с известным IP-адресом, которые уже внесены в белый список в файле конфигурации.

Если IP-адрес вашего интернет-провайдера изменился или вы новичок в этой работе, вам, вероятно, придется попросить администратора сети сделать исключение.

То же самое может произойти, если ваш IP-адрес случайно занесен в черный список администратором сети.

Итак, посоветуйтесь со своим сетевым администратором для обоих сценариев и посмотрите, поможет ли это решить проблему.

Исправление 5: отключить брандмауэр

Если вы используете Windows, ваш антивирус или брандмауэр безопасности Windows по умолчанию и функция сетевой защиты могут блокировать входящее соединение, что приводит к ошибке в соединении.

Попробуйте временно отключить брандмауэр, чтобы увидеть, может ли это устранить ошибку отказа в соединении. Если это так, вам может потребоваться настроить брандмауэр, чтобы полностью исправить ошибку.

Отключить брандмауэр в безопасности Windows

network error connection timed out putty что делать. Смотреть фото network error connection timed out putty что делать. Смотреть картинку network error connection timed out putty что делать. Картинка про network error connection timed out putty что делать. Фото network error connection timed out putty что делать

network error connection timed out putty что делать. Смотреть фото network error connection timed out putty что делать. Смотреть картинку network error connection timed out putty что делать. Картинка про network error connection timed out putty что делать. Фото network error connection timed out putty что делать

Отключить антивирусный брандмауэр

Если у вас запущена сторонняя антивирусная программа, вам также может потребоваться отключить брандмауэр, предлагаемый приложением. Вы можете отключить брандмауэр в настройках антивируса.

Попробуйте сейчас подключиться с помощью PuTTy. Если соединение установлено, вам необходимо настроить параметры брандмауэра, чтобы решить проблему.

Ваша сеть нуждается в защите! Проверьте наши 15 лучших брандмауэров для защиты вашей домашней сети.

Прочие исправления

Если ни одно из исправлений у вас не помогло, вы можете попробовать перезапустить SSH-сервер или перезагрузить серверы.

Если ваш сервер был настроен кем-то другим, возможно, они переместили порт по умолчанию для своего удобства. Свяжитесь с узлами конфигурации и попросите их получить лучшее представление о портах.

Если вы используете полностью управляемый сервер, обратитесь в службу поддержки. Если проблема исходит от хостинг-провайдера, системный администратор исправит ее.

И последнее, но не менее важное: начните использовать другие альтернативы Putty, например, другие терминалы SH, которые могут помочь вам в случае, если вы столкнетесь с ошибкой, специфичной для PuTTY.

Вывод

Неустранимая ошибка Putty «Ошибка сети: ошибка отказа в соединении может возникнуть по нескольким причинам, и я попытался перечислить наиболее распространенные проблемы и решения для них.

Однако, если исправления, перечисленные в этой статье, не работают для вас, вы можете спросить на форумах, связанных с вашим устройством или ОС, на которых появляется ошибка.

Сообщите нам сейчас, если какое-либо из исправлений сработало для вас или у вас есть решение, которое не указано в статье в комментариях ниже.

Часто задаваемые вопросы: узнайте больше о PuTTY и сетевой ошибке: в соединении отказано

Обязательно обновите PuTTY до последней версии. Затем проверьте свой локальный антивирус или брандмауэр и убедитесь, что они не блокируют приложение. Наконец, убедитесь, что вы ввели правильную информацию и что сервер, к которому вы пытаетесь подключиться, доступен.

PuTTY, пожалуй, самое популярное программное обеспечение в Windows, используемое для подключения к удаленному серверу через протоколы SSH или Telnet. PuTTY НЕ поддерживает FTP, и для этого вам понадобится другое программное обеспечение. Ознакомьтесь с нашим списком лучших автоматизированных инструментов FTP.

Каждое программное обеспечение межсетевого экрана имеет свой интерфейс и доступные параметры. У большинства есть списки, называемые белыми или разрешенными списками, в которые вы добавляете PuTTY, чтобы убедиться, что это разрешено. Прочтите дополнительную информацию и инструкции, как проверить, не блокирует ли брандмауэр Windows что-либо.

Примечание редактора: этот пост был первоначально опубликован в марте 2019 года и с тех пор был переработан и обновлен в апреле 2020 года для обеспечения свежести, точности и полноты.

Источник

Глава 10: Common error messages

This chapter lists a number of common error messages which PuTTY and its associated tools can produce, and explains what they mean in more detail.

We do not attempt to list all error messages here: there are many which should never occur, and some which should be self-explanatory. If you get an error message which is not listed in this chapter and which you don’t understand, report it to us as a bug (see appendix B) and we will add documentation for it.

10.1 «The server’s host key is not cached in the registry»

This error message occurs when PuTTY connects to a new SSH server. Every server identifies itself by means of a host key; once PuTTY knows the host key for a server, it will be able to detect if a malicious attacker redirects your connection to another machine.

If you see this message, it means that PuTTY has not seen this host key before, and has no way of knowing whether it is correct or not. You should attempt to verify the host key by other means, such as asking the machine’s administrator.

If you see this message and you know that your installation of PuTTY has connected to the same server before, it may have been recently upgraded to SSH protocol version 2. SSH protocols 1 and 2 use separate host keys, so when you first use SSH-2 with a server you have only used SSH-1 with before, you will see this message again. You should verify the correctness of the key as before.

See section 2.2 for more information on host keys.

This message, followed by «The server’s host key does not match the one PuTTY has cached in the registry», means that PuTTY has connected to the SSH server before, knows what its host key should be, but has found a different one.

This may mean that a malicious attacker has replaced your server with a different one, or has redirected your network connection to their own machine. On the other hand, it may simply mean that the administrator of your server has accidentally changed the key while upgrading the SSH software; this shouldn’t happen but it is unfortunately possible.

You should contact your server’s administrator and see whether they expect the host key to have changed. If so, verify the new host key in the same way as you would if it was new.

See section 2.2 for more information on host keys.

10.3 «SSH protocol version 2 required by our configuration but remote only provides (old, insecure) SSH-1»

By default, PuTTY only supports connecting to SSH servers that implement SSH protocol version 2. If you see this message, the server you’re trying to connect to only supports the older SSH-1 protocol.

You might start seeing this message with new versions of PuTTY (from 0.68 onwards) where you didn’t before, because it used to be possible to configure PuTTY to automatically fall back from SSH-2 to SSH-1. This is no longer supported, to prevent the possibility of a downgrade attack.

This occurs when the SSH server does not offer any ciphers which you have configured PuTTY to consider strong enough. By default, PuTTY puts up this warning only for Blowfish, single-DES, and Arcfour encryption.

See section 4.22 for more information on this message.

(There are similar messages for other cryptographic primitives, such as host key algorithms.)

10.5 «Remote side sent disconnect message type 2 (protocol error): «Too many authentication failures for root»»

This message is produced by an OpenSSH (or Sun SSH) server if it receives more failed authentication attempts than it is willing to tolerate.

This can easily happen if you are using Pageant and have a large number of keys loaded into it, since these servers count each offer of a public key as an authentication attempt. This can be worked around by specifying the key that’s required for the authentication in the PuTTY configuration (see section 4.23.8); PuTTY will ignore any other keys Pageant may have, but will ask Pageant to do the authentication, so that you don’t have to type your passphrase.

10.6 «Out of memory»

This occurs when PuTTY tries to allocate more memory than the system can give it. This may happen for genuine reasons: if the computer really has run out of memory, or if you have configured an extremely large number of lines of scrollback in your terminal. PuTTY is not able to recover from running out of memory; it will terminate immediately after giving this error.

However, this error can also occur when memory is not running out at all, because PuTTY receives data in the wrong format. In SSH-2 and also in SFTP, the server sends the length of each message before the message itself; so PuTTY will receive the length, try to allocate space for the message, and then receive the rest of the message. If the length PuTTY receives is garbage, it will try to allocate a ridiculous amount of memory, and will terminate with an «Out of memory» error.

This can happen in SSH-2, if PuTTY and the server have not enabled encryption in the same way (see question A.7.3 in the FAQ).

This can also happen in PSCP or PSFTP, if your login scripts on the server generate output: the client program will be expecting an SFTP message starting with a length, and if it receives some text from your login scripts instead it will try to interpret them as a message length. See question A.7.4 for details of this.

10.7 «Internal error», «Internal fault», «Assertion failed»

Any error beginning with the word «Internal» should never occur. If it does, there is a bug in PuTTY by definition; please see appendix B and report it to us.

Similarly, any error message starting with «Assertion failed» is a bug in PuTTY. Please report it to us, and include the exact text from the error message box.

10.8 «Unable to use key file», «Couldn’t load private key», «Couldn’t load this key»

Various forms of this error are printed in the PuTTY window, or written to the PuTTY Event Log (see section 3.1.3.1) when trying public-key authentication, or given by Pageant when trying to load a private key.

If you see one of these messages, it often indicates that you’ve tried to load a key of an inappropriate type into PuTTY, Plink, PSCP, PSFTP, or Pageant.

You may have tried to load an SSH-2 key in a «foreign» format (OpenSSH or ssh.com ) directly into one of the PuTTY tools, in which case you need to import it into PuTTY’s native format ( *.PPK ) using PuTTYgen – see section 8.2.12.

Alternatively, you may have specified a key that’s inappropriate for the connection you’re making. The SSH-2 and the old SSH-1 protocols require different private key formats, and a SSH-1 key can’t be used for a SSH-2 connection (or vice versa).

10.9 «Server refused our key», «Server refused our public key», «Key refused»

Various forms of this error are printed in the PuTTY window, or written to the PuTTY Event Log (see section 3.1.3.1) when trying public-key authentication.

If you see one of these messages, it means that PuTTY has sent a public key to the server and offered to authenticate with it, and the server has refused to accept authentication. This usually means that the server is not configured to accept this key to authenticate this user.

This is almost certainly not a problem with PuTTY. If you see this type of message, the first thing you should do is check your server configuration carefully. Common errors include having the wrong permissions or ownership set on the public key or the user’s home directory on the server. Also, read the PuTTY Event Log; the server may have sent diagnostic messages explaining exactly what problem it had with your setup.

Section 8.3 has some hints on server-side public key setup.

10.10 «Access denied», «Authentication refused»

Various forms of this error are printed in the PuTTY window, or written to the PuTTY Event Log (see section 3.1.3.1) during authentication.

If you see one of these messages, it means that the server has refused all the forms of authentication PuTTY has tried and it has no further ideas.

It may be worth checking the Event Log for diagnostic messages from the server giving more detail.

This error can be caused by buggy SSH-1 servers that fail to cope with the various strategies we use for camouflaging passwords in transit. Upgrade your server, or use the workarounds described in section 4.28.11 and possibly section 4.28.12.

10.11 «No supported authentication methods available»

This error indicates that PuTTY has run out of ways to authenticate you to an SSH server. This may be because PuTTY has TIS or keyboard-interactive authentication disabled, in which case see section 4.23.4 and section 4.23.5.

10.12 «Incorrect MAC received on packet» or «Incorrect CRC received on packet»

This error occurs when PuTTY decrypts an SSH packet and its checksum is not correct. This probably means something has gone wrong in the encryption or decryption process. It’s difficult to tell from this error message whether the problem is in the client, in the server, or in between.

In particular, if the network is corrupting data at the TCP level, it may only be obvious with cryptographic protocols such as SSH, which explicitly check the integrity of the transferred data and complain loudly if the checks fail. Corruption of protocols without integrity protection (such as HTTP) will manifest in more subtle failures (such as misdisplayed text or images in a web browser) which may not be noticed.

Occasionally this has been caused by server bugs. An example is the bug described at section 4.28.8, although you’re very unlikely to encounter that one these days.

In this context MAC stands for Message Authentication Code. It’s a cryptographic term, and it has nothing at all to do with Ethernet MAC (Media Access Control) addresses, or with the Apple computer.

10.13 «Incoming packet was garbled on decryption»

This error occurs when PuTTY decrypts an SSH packet and the decrypted data makes no sense. This probably means something has gone wrong in the encryption or decryption process. It’s difficult to tell from this error message whether the problem is in the client, in the server, or in between.

If you get this error, one thing you could try would be to fiddle with the setting of «Miscomputes SSH-2 encryption keys» (see section 4.28.10) or «Ignores SSH-2 maximum packet size» (see section 4.28.5) on the Bugs panel.

10.14 «PuTTY X11 proxy: various errors»

This family of errors are reported when PuTTY is doing X forwarding. They are sent back to the X application running on the SSH server, which will usually report the error to the user.

When PuTTY enables X forwarding (see section 3.4) it creates a virtual X display running on the SSH server. This display requires authentication to connect to it (this is how PuTTY prevents other users on your server machine from connecting through the PuTTY proxy to your real X display). PuTTY also sends the server the details it needs to enable clients to connect, and the server should put this mechanism in place automatically, so your X applications should just work.

A common reason why people see one of these messages is because they used SSH to log in as one user (let’s say «fred»), and then used the Unix su command to become another user (typically «root»). The original user, «fred», has access to the X authentication data provided by the SSH server, and can run X applications which are forwarded over the SSH connection. However, the second user («root») does not automatically have the authentication data passed on to it, so attempting to run an X application as that user often fails with this error.

If this happens, it is not a problem with PuTTY. You need to arrange for your X authentication data to be passed from the user you logged in as to the user you used su to become. How you do this depends on your particular system; in fact many modern versions of su do it automatically.

10.15 «Network error: Software caused connection abort»

This is a generic error produced by the Windows network code when it kills an established connection for some reason. For example, it might happen if you pull the network cable out of the back of an Ethernet-connected computer, or if Windows has any other similar reason to believe the entire network has become unreachable.

Windows also generates this error if it has given up on the machine at the other end of the connection ever responding to it. If the network between your client and server goes down and your client then tries to send some data, Windows will make several attempts to send the data and will then give up and kill the connection. In particular, this can occur even if you didn’t type anything, if you are using SSH-2 and PuTTY attempts a key re-exchange. (See section 4.20.2 for more about key re-exchange.)

(It can also occur if you are using keepalives in your connection. Other people have reported that keepalives fix this error for them. See section 4.14.1 for a discussion of the pros and cons of keepalives.)

We are not aware of any reason why this error might occur that would represent a bug in PuTTY. The problem is between you, your Windows system, your network and the remote system.

10.16 «Network error: Connection reset by peer»

This error occurs when the machines at each end of a network connection lose track of the state of the connection between them. For example, you might see it if your SSH server crashes, and manages to reboot fully before you next attempt to send data to it.

However, the most common reason to see this message is if you are connecting through a firewall or a NAT router which has timed the connection out. See question A.7.8 in the FAQ for more details. You may be able to improve the situation by using keepalives; see section 4.14.1 for details on this.

Note that Windows can produce this error in some circumstances without seeing a connection reset from the server, for instance if the connection to the network is lost.

10.17 «Network error: Connection refused»

This error means that the network connection PuTTY tried to make to your server was rejected by the server. Usually this happens because the server does not provide the service which PuTTY is trying to access.

Check that you are connecting with the correct protocol (SSH, Telnet or Rlogin), and check that the port number is correct. If that fails, consult the administrator of your server.

10.18 «Network error: Connection timed out»

This error means that the network connection PuTTY tried to make to your server received no response at all from the server. Usually this happens because the server machine is completely isolated from the network, or because it is turned off.

Check that you have correctly entered the host name or IP address of your server machine. If that fails, consult the administrator of your server.

Unix also generates this error when it tries to send data down a connection and contact with the server has been completely lost during a connection. (There is a delay of minutes before Unix gives up on receiving a reply from the server.) This can occur if you type things into PuTTY while the network is down, but it can also occur if PuTTY decides of its own accord to send data: due to a repeat key exchange in SSH-2 (see section 4.20.2) or due to keepalives (section 4.14.1).

10.19 «Network error: Cannot assign requested address»

This means that the operating system rejected the parameters of the network connection PuTTY tried to make, usually without actually trying to connect to anything, because they were simply invalid.

A common way to provoke this error is to accidentally try to connect to port 0, which is not a valid port number.

Источник

unixforum.org

Форум для пользователей UNIX-подобных систем

Работа с putty (Хочу подсоединиться удалённо к Linux с Windows)

Модератор: SLEDopit

Работа с putty

Сообщение neonosh » 03.10.2007 09:19

network error connection timed out putty что делать. Смотреть фото network error connection timed out putty что делать. Смотреть картинку network error connection timed out putty что делать. Картинка про network error connection timed out putty что делать. Фото network error connection timed out putty что делать

Re: Работа с putty

Сообщение Darhan » 03.10.2007 09:34

Re: Работа с putty

Сообщение neonosh » 03.10.2007 09:49

Re: Работа с putty

network error connection timed out putty что делать. Смотреть фото network error connection timed out putty что делать. Смотреть картинку network error connection timed out putty что делать. Картинка про network error connection timed out putty что делать. Фото network error connection timed out putty что делать

Re: Работа с putty

Сообщение Darhan » 03.10.2007 09:59

Re: Работа с putty

Сообщение neonosh » 03.10.2007 10:13

network error connection timed out putty что делать. Смотреть фото network error connection timed out putty что делать. Смотреть картинку network error connection timed out putty что делать. Картинка про network error connection timed out putty что делать. Фото network error connection timed out putty что делать

Re: Работа с putty

Сообщение Darhan » 03.10.2007 10:21

Re: Работа с putty

Сообщение neonosh » 03.10.2007 10:36

network error connection timed out putty что делать. Смотреть фото network error connection timed out putty что делать. Смотреть картинку network error connection timed out putty что делать. Картинка про network error connection timed out putty что делать. Фото network error connection timed out putty что делать

Re: Работа с putty

Сообщение pehser » 03.10.2007 10:38

Re: Работа с putty

Сообщение neonosh » 03.10.2007 10:46

После ввода ls /etc/init.d/ | grep ssh показывает sshd
А putty так и конектится.

network error connection timed out putty что делать. Смотреть фото network error connection timed out putty что делать. Смотреть картинку network error connection timed out putty что делать. Картинка про network error connection timed out putty что делать. Фото network error connection timed out putty что делать

Re: Работа с putty

Сообщение mczim » 03.10.2007 10:51

1. putty достаточно удобный, им можно пользоваться как по ssh так и по telnet.
2. для подключения одной машины к другой нужно учесть несколько моментов:

—физическое подлючение кабелем
—расположение компьютеров в одной подсети (желательно в вашем случае так как вы новичек)
—отключенный фаервол (опять же только в вашем случае что бы не возникали лишние вопросы)
—работающий сервис ждущий соединения (telnet или ssh)

и так теперь рассмотрим все пункты по порядку:

—дальше вам нужно определится с по какому протоколы вы хотите работать telnet или ssh. По умолчанию tlenet работает на 23 порту а ssh на 22 и вам как новичку ничего перенастраивать на другие порты нет необходимости.
и так допустим вы выбрали протокол shh работающий по 22 порту, значит на линукс машине выполните: ps aux|grep sshd вы должны увидеть примерно следующее:

если вы увидите только вот это

root 27727 0.0 0.0 3908 644 pts/9 S 11:01 0:00 grep sshd

значит у вас сервис ssh не установлен вам следует его установить и запустить. установка и запуск зависит от вашего дистрибутива. и только после этого вы можете попытаться подключится с помощью putty по протоколу ssh на 22 порт.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *