Huawei putty error

Содержание Что такое putty? PuTTY — это маленькая бесплатная программа для подключения к серверу, через Telnet или безопасное соединение SSH.[...]

PuTTY — это маленькая бесплатная программа для подключения к серверу, через Telnet или безопасное соединение SSH.

Запускаем без установки

После того как вы скачаете программу с официального сайта, устанавливать ее не нужно. Просто запускаете файл PuTTY.exe и видите такое окно:

Находим настройки

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

Вводим настройки и подключаемся

Host Name (or IP-adress) — имя хоста или IP-адрес, которые присылаются в настройках от хостера.Port — ставим 22.Saved Session — вводим любое имя для сессии и жмем «Save» («Open» пока еще рано жать).Далее в левой колонке выбираем вкладку SSH и видим следующее:

Здесь ничего не трогаем, но в поле Preferred SSH protocol version выбираем 2 only (на некоторых хостингах можно просто оставить 2). Чтобы подключиться к серверу жмем «Open».

Putty настройка подключения через com порт

Меня часто спрашивают, как настроить подключение через COM (RS-232) порт в Putty. Это делается очень просто. Сначала узнаем в диспетчере устройств номер нужного нам COM порта.

Для этого вызываем диспетчер устройств: Win R->mmc devmgmt.msc->Enter

и находим номер, нужного нам, порта.

Rsa ключ

Генерируем RSA ключ для использования на устройстве. Без него SSH не заработает.

rsa local-key-pair create

Проверить ключ можно при помощи команды display rsa local-key-pair. Будет отображено имя ключа, его тип и дата создания.

[Quidway]display rsa local-key-pair public
=====================================================
Time of Key pair created: 01:10:03 2021/11/10
Key name: Quidway_Host
Key type: RSA encryption Key
=====================================================
Key code:
308188
...
=====================================================
Time of Key pair created: 01:10:10 2021/11/10
Key name: Quidway_Server
Key type: RSA encryption Key
=====================================================
Key code:
3067
...

Приступаем непосредственно к настройке SSH.

Базовая настройка ip

Присваиваем IP

[Quidway]interface vlanif 1
[Quidway-Vlanif1]ip add 10.2.0.70 255.255.0.0

Проверяем:

[Quidway-Vlanif1]display this
#
interface Vlanif1
ip address 10.2.0.100 255.255.0.0
#
return
[Quidway-Vlanif1]quit

Теперь назначаем коммутатору шлюз по умолчанию:

[Quidway]ip route 0.0.0.0 0.0.0.0 10.2.1.1

Проверяем:

[Quidway]display ip routing-table

Route Flags: R — relay, D — download to fib

——————————————————————————

Routing Tables: Public

Destinations : 5 Routes : 5

Destination/Mask Proto Pre Cost Flags NextHop Interface

0.0.0.0/0 Static 60 0 RD 10.2.1.1 Vlanif1

10.2.0.0/16 Direct 0 0 D 10.2.0.100 Vlanif1

10.2.0.100/32 Direct 0 0 D 127.0.0.1 InLoopBack0

127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0

127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0

Важные команды putty

Широкий список команд смотрим в отдельной статье, а самые главные мы описываем здесь:

имя команды —help — покажет полную информацию о команде и что она делает;mc — запускает Midnight Commander (файловый менеджер);ls — покажет файлы на сервере;ls — la — покажет все файлы на сервере (даже скрытые) размер владельца права на фалы дату изменения;cd директория — перейдет в указанную директорию;cd ../ — вернуться на директорию вверх;mv — переименоватьперенести файл;rm — удалить файл;cp — копировать;chmod — поменять права на папку или файл;cat имя файла — покажет содержимое файла;mkdir — создать папку.

Источник

Возможности программы

  • Сохранение информации и конфигурационных параметров для многократного применения.
  • Работа с SSH-ключами.
  • Поддержка разных версий SSH-протокола.
  • Встроенные клиенты SCP и SFTP, используемые для различных операций с файлами. Возможности первого ограничиваются только функцией копирования.
  • Перенаправление портов через протокол SSH.
  • Поддержка xterm, ECMA-48 и VT-102.
  • Возможность соединения по IPv6.
  • Работа с алгоритмами шифрования.
  • Аутентификация через ключ, который расположен на удаленной машине.
  • Соединение через proxy.
  • Использование порта RS-232.

Генерация ssh-ключей

Откройте приложение PuTTYgen

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

Нажмите кнопку «generate», чтобы начать генерацию ключа.

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

После генерации станет доступен созданный ключ:

Заказать создание и поддержку безопасной it-инфраструктуры любой сложности

Быть уверенным в своей IT-инфраструктуре — это быть уверенным в завтрашнем дне.

Источник

Зачем она нужна?

Как правило данную программу используют для передачи команд серверу. Т.е. вы настраиваете PuTTY -> она подключается к серверу -> вы вводите в командную строку команды -> сервер их выполняет.

Еще одно применение — это передача файлов с компьютера на сервер и обратно, но для таких целей чаще используют бесплатную программу Filezilla, Total Commander или Far Manager.

Интерфейс

Пользоваться программой PuTTY удобно, т. к. она имеет понятный интерфейс. Чтобы ее настроить , нужно знать назначение основных ее вкладок.

  • Session позволяет задать параметры соединения, чтобы подключиться к серверу (IP-адрес, протокол и порт), а также сохранить настройки для многократного использования.
  • Terminal : режим активации или деактивации терминала.
  • Window : установка кодировки и изменение интерфейса.
  • Connection отвечает за выбор шифрования, аутентификацию без ввода пароля и т. д.

Использование ssh-ключей

Чтобы постоянно не вводить данные авторизации для соединения с удаленным сервером, нужно установить ключ SSH -типа.

Для примера, продемонстрируем ниже, как подключиться через PuTTY , установленного в Windows 10, при помощи SSH-ключа к серверу на Ubuntu.

Как ввести at-команду в модем, используя dc unlocker?

На рисунке эта кнопка помечена цифрой 1. Обратите внимание на лог DC Unlocker (лог это вся информация в окошке, там отображается модель вашего модема, версия прошивки и т.п.) и количество оставшихся попыток ввода кода разблокировки.

Если попыток ввода кода не осталось, то разблокировать модем кодом будет уже нельзя. Вводим ниже в том же окне команду AT^CARDLOCK=”nck code”, где nck code – полученный вами код разблокировки. После того как модем ответит Ok – он будет разблокирован.

Перед использованием DC Unlocker в качестве терминального клиента, необходимо также убедиться, как мы это делали в случае с PuTTy, что ни один из процессов и сервисов не используется COM порт модема (если у вас открыта программа для соединения с интернет, идущая в комплекте с модемом – ее обязательно нужно закрыть), а еще лучше завершить все “лишние” процессы, относящиеся к модему через диспетчер задач.

Как ввести код разблокировки в модем с помощью at-команды?

Для этого дадим команду AT^CARDLOCK=”72033153″, после чего, проверим статус блокировки с помощью AT^CARDLOCK? :

Как видно, модем ответил ^CARDLOCK 2,10,0 – что означает что он разблокирован и его теперь можно использовать SIM картами любых операторов. Теперь мы рассмотрим как все то же самое сделать через DC Unlocker.

Как и чем вводить ат команды в модем

AT команда служит для управления некоторыми функциями модема. Команды можно вводить специальными программами, это намного проще чем встроенным в Windows XP hyperterminal. Для этого можно использовать программы: My Huawei Terminal или DC-Unlocker.

Перед использованием данных программ нужно закрыть все другие программы которые могут использовать модем. Для модемов Huawei нужно подключаться на COM порт «3G PC UI Interface«, для модемов ZTE MF на COM порт «ZTE Proprietary USB Modem«.

DC-Unlocker client первая в Мире программа которая начала специализироваться на разблокировке беспроводных 2G3G4G модемов форм-фактора USBPCMCIA. Со временем модельный ряд начал расширятся мобильными телефонами, смартфонами, WiFi роутерами .

Качаем программу DC-Unlocker client и устанавливаем ее. После чего запускаем. 1. Далее меняем язык на русский. Нажимаем Options и выбираем Russian

2. Выбираем производителя модема или роутера в нашем случаи это Huawei. Нажимаем на Лупу как показано на картинке и пойдет чтение информации. Внимание! родная программа от модема должна быть закрыта). После прочтения информации вы увидите Статус SIM блокировки — Блокировано

3. Далее нам необходимо вести команду AT^CARDLOCK=»NCK Code», где NCK Code — это код разблокировки который вы приобрели у нас. Например код 12860791 тогда наша команда будет иметь такой вид AT^CARDLOCK=»12860791″.

4. После нажатия на ENTER произойдет ввод кода в наше устройство и выйдет сообщение OK

5. Нажимаем еще раз на Лупу, чтобы прочитать заново информацию. И вы увидим, где Статус SIM блокировки — надпись Разблокирован

Вот и все. Наше устройство успешно разблокировано.

AT^CARDLOCK=»NCK Code» – ввод кода снятия блокировки (8-значное число). NCK Code — это код разблокировки. Пример команды AT^CARDLOCK=»12345678″

Терминал — программа терминала для прямой работы с беспроводными модемами Huawei, а также (ограниченно) с любыми другими модемами.

Huawei Terminal — программа терминала для прямой работы с беспроводными модемами Huawei, а также (ограниченно) с любыми другими модемами.

Запускаем My Huawei Terminal. В окне нужно выбрать HUAWEI Mobile Connect — 3G PC UI Interface Нажимаем Подключить (Connect)

Для уверенности, что вы действительно подключились, наберите команду AT и нажмите отправить: Если в ответ от модема OK. Значит вы все сделали правильно и все готово для работы с модемом.

AT^CARDLOCK=»NCK Code», где NCK Code — это код разблокировки который вы приобрели у нас. Например код 43963141 тогда наша команда будет иметь такой вид AT^CARDLOCK=»43963141″. Вставляем команду AT^CARDLOCK=»43963141″ и нажимаем кнопку ENTER клавиатуре.

Так же в этой программе можно посмотреть другие параметры модема.

Скачиваем программу Huawei Modem Tool v3.3, вставляем модем БЕЗ СИМ карты — если запуститься программа модема то закрываем, запускаем huawei modem tool и ждём пока определиться модем, вводим код разблокировки и нажимаем Send Unlock code.

Смотрим картинку там всё подробно нарисовано.

Внимание: После ввода команды, во всех трёх программах должен быть ответ ОК. Это значит что команда была принята.

Список доступных at команды модема Huawei и ZTE MF смотрим здесь: AT команды для модемов Huawei и для ZTE MF

Источник

Как подключиться к серверу с помощью putty

Запустите PuTTY (putty.exe)

Настройте новую сессию: в поле «Host Name (or IP address)» введите IP-адрес удаленного сервера, или его имя. Укажите порт службы SSH вашего сервера в поле “Port” (по умолчанию используется порт 22).

Выберем ключи для авторизации. Для этого перейдите в раздел «SSH/Auth».Нажмите «Browse» и выберите приватный ключ, сохранённый ранее.

Cохраним настройки сессии, чтобы не задавать их заново при повторных подключениях. Перейдите обратно в раздел «Session». В поле «Saved Session» задайте новое имя для сессии и нажмите «Save».

Нажмите «Open», чтобы подключиться к северу.

Может открыться предупреждение системы безопасности. Если вы доверяете хосту, нажмите «Да».

Откроется командная строка. В ней введите имя пользователя и, если потребуется, пароль.

Если вы подключаетесь к серверу, созданному в дата-центре Airnode на основе готового образы, то в качестве имени пользователя используйте имя операционной системы.Например: debian, centos, ubuntu. Пароль при этом не требуется.

Источник

Как разблокировать модем huawei с помощью at-команд?

Ввода AT-команд в Huawei E3272. Пошаговое руководство.

В этой статье мы рассмотрим с вами как можно разблокировать модем Huawei при помощи AT-команд, а также, как вообще, можно взаимодействовать с модемом при их помощи. Для примера возьмем популярную на данный момент модель – Huawei E3272 … Как мы и писали ранее, взаимодействовать с модемом при помощи AT-команд, можно через специальные терминальные программы, например

HyperTerminal, PuTTy, Huawei Modem Terminal и др. Рассмотрим, как же это сделать.

Как узнать imei модема и версию прошивки с помощью at-команд?

IMEI модема и версию прошивки можно узнать с помощью команды ATI, или AT CGSN. Введем последовательно эти две команды в модем и посмотрим его ответ:

ATI CGSN

Manufacturer: huawei
Model: E3272
Revision: 21.436.05.00.209
IMEI: 867503013090647
 GCAP:  CGSM, DS, ES

867503013090647

OK
IMEI : 	867503013090647
201 Algo Unlock Code : 	72033153
Flash Code : 	34262301

Т.о. код разблокировки для нашего модема – 72033153. Введем его и проверим статус блокировки.

Конвертация ключа putty

PuTTy использует собственный формат ключей. Поэтому если вы сгенерировали приватный ключ в личном кабинете Airnode (при помощи OpenStack) или в другой программе, а подключение к виртуальному серверу хотите делать через Putty, необходимо конвертировать приватный ключ.

Откройте приложение «PuTTYgen».

Нажмите «conversation» и выберите «Import key».

Выберите фаил с ключом и откройте его.

После этого сохраните преобразованный приватный ключ с помощью кнопки «Save private key».

Также доступна обратная процедура — если вы захотите сменить SSH-агент с PuTTy на любой другой, нужно сконвертировать ключ в формат OpenSSH. Для этого используйте меню «Conversions / Import key»:

Настройка putty

Connection type: Serial — последовательное подключение. Serial line: COM3 — номер COM порта. Speed: 9600 скорость передачи информации.

И нажимаем Open (хотя можно сначала сохранить, чтобы каждый раз не вводить).

Если все сделано правильно — поздравляю. Мы подключились.

Настройка ssh сервера для удаленного доступа на huawei quidway

Включаем SSH сервер.

stelnet server enable

Настраиваем SSH сервер. Указываем пользователя, который может использовать SSH, задаем ему тип аутентификации (в нашем случае используется локальная аутентификация по паролю). Также, указываем типы сервисов, которые может использовать пользователь: ssh, sftp или оба (all).

Настройка ааа на huawei quidway для включения ssh

Для включения SSH в Quidway прежде всего необходимо добавить и
настроить нового пользователя в разделе конфигурации ААА
(Authentication, Authorization, Accounting). Все настройки выполняются в
привилегированном режиме (вход в привилегированный режим осуществляется
командой system-view).

Приступаем к настройке ААА

[Quidway]aaa

Настраиваем authentication-scheme, authorization-scheme,
accounting-scheme. Обычно, данные параметры заданы в конфигурации
коммутатора по умолчанию.

[Quidway-aaa]authentication-scheme default
[Quidway-aaa]authorization-scheme default
[Quidway-aaa]accounting-scheme default

Настройки домена также оставляем без изменений

Настройка виртуального терминала vty

Для завершения настройки удаленного доступа по SSH к Huawei Quidway, необходимо задать параметры аутентификации и протоколы доступа на виртуальных интерфейсах vty, используемых для управления коммутатором. В нашем случае настроим интерфейсы 0 – 4. Укажем параметры аутентификации ААА, чтобы поиск пользователя происходил в локальной базе пользователей, согласно настройкам, заданным в начале статьи. Входящим протоколом укажем ssh. Таким образом, мы исключим использование небезопасного протокола telnet.

Настройка портов

Выставляем каждому порту режим работы (в коммутаторах Huawei есть два режима: access и hybrid, нам нужен режим access).

[Quidway]interface ethernet 0/0/1
[Quidway-Ethernet0/0/1]port link-type acces
[Quidway-Ethernet0/0/1]port default vlan 1
[Quidway-Ethernet0/0/1]quit

………

[Quidway]interface ethernet 0/0/24
[Quidway-Ethernet0/0/24]port link-type acces
[Quidway-Ethernet0/0/24]port default vlan 1
[Quidway-Ethernet0/0/24]quit
[Quidway]interface gigabitethernet 0/0/1
[Quidway-GigabitEthernet0/0/1]port link-type access
[Quidway-GigabitEthernet0/0/1]port default vlan 1
[Quidway-GigabitEthernet0/0/1]quit

И так далее

Номер порта

в моем случае это COM3

Теперь запускаем Putty и настраиваем его.

Подключаемся

Подключаемся к коммутатору с помощью консольного кабеля.

Используем утилиту Putty, настройки:

Подключаемся к модему huawei e1550 с помощью putty для изменения конфигурации с помощью at команд из windows

Для изменения конфигурации модемов Huawei из Windows можно воспользоватся простой программой Putty.

Скачиваем последнюю версию Putty c оффициального сайта по ссылке: ]]> cкачать Putty ]]>

Втыкаем модем Huawei E1550 в USB порт компьютера, открываем Диспетчер устройств (Правой кнопкой на Мой компьютер — Свойства — Оборудование — Диспетчер устройств) — и смотрим:

Во вкладке Порты (COM и LPT) видим наш модем и в скобочках присвоенные ему COM порты, в моем случае это COM10, COM11

Далее запускаем программу putty

Ставим галочку на Serial и в поле Serial line изменяем COM1 на COM11. Нажимаем Open и подключаемся к модему e1550.

В зависимости от того как нужно настроить модем прописываем команду и нажимаем Enter

Основные комманды для модемма:

Только GPRS/EDGE —AT^SYSCFG=13,1,3FFFFFFF,2,4Только 3G/WCDMA —AT^SYSCFG=14,2,3FFFFFFF,2,4Предпочитать GPRS/EDGE —AT^SYSCFG=2,1,3FFFFFFF,2,4Предпочитать 3G/WCDMA —AT^SYSCFG=2,2,3FFFFFFF,2,4Устройство в режиме только модем —AT^U2DIAG=0Устройство в режиме модем CD-ROM —AT^U2DIAG=1Устройство в режиме модем CD-ROM Card Reader —AT^U2DIAG=255илиAT^U2DIAG=276Устройство в режиме модем Card Reader —AT^U2DIAG=256

Так как мне нужно было настроит работу модема только как модема, без cdrom и Card Reader я ввел куоманду и нажал Enter:

Все, у модема изменена конфигурация, задача выполнена.

Источник

Подключение к серверу через putty: примеры использования

Содержание

Пользователи

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

Применение и возможности putty

PuTTY — программа, которая позволяет установить соединение с удаленным сервером или компьютером. Программу можно также применять для реализации следующих целей:

  • удаленного администрирования;
  • взаимодействия с VPS -серверами.
  • работы с Telnet-терминалами;
  • настройки маршрутизаторов через RS-232;

Работать рекомендуется через SSH, поскольку он обеспечивает высокий уровень безопасности соединения с другим компьютером. PuTTY поддерживает Telnet, реализующий текстовый интерфейс в терминале (только для отображения текстовой информации в режиме консоли).

Причины ошибки

  • Отсутствие сетевого подключения.
  • Неверно указан IP-адрес.
  • Порт не поддерживается или его значение задано неверно.
  • Блокировка исходящего подключения антивирусом или брандмауэром.

Проверка настройки ssh на quidway.

Проверку статуса SSH сервера можно осуществить при помощи команды display ssh server status. В выводе этой команды показывается версия протокола SSH, статусы SSH (stelnet) и SFTP серверов на коммутаторе, а также ряд конфигурационных параметров.

Прошивка

Заливка новой прошивки и включение web интерфейса.

Работа с файлами

Программа позволяет делать операции с файлами. Чтобы закачать файл на сервер , находящийся под управлением Linux Ubuntu (с компьютера на ОС Windows), нужно действовать по приведенной ниже инструкции.

  1. Сохранить тестовый файл « mydoc.txt » на диске C: вместе с исполняемым файлом для безопасного копирования — pscp.exe.
  2. Открыть командную строку Windows: « Win R → cmd → Enter ».
  3. Зайти в папку с программой pscp.exe, для чего ввести команду : « cd /d c:Puttypscp.exe » * , где « c:Putty » — путь к файлу pscp.exe.
    * Путь к файлу «c:Puttypscp.exe» приведен в качестве примера.
  4. Далее можно приступать непосредственно к работе с файлом. Например, п ередать файл « mydoc.txt » на сервер « 192.241.7.16 » * со стандартным портом и пользователем Ubuntu74 в папку « root » можно командой:
    * IP-адрес «192.241.7.16» приведен только в качестве примера.

Если для соединения используется нестандартный порт (например, 25), то команда примет вид:

  • Ввести пароль для Ubuntu74 .
  • Смена порта ssh сервера на quidway

    Изменение порта, на котором SSH сервер на Quidway будет принимать запросы, осуществляется очень просто. Кроме 22, можно задать любой порт из диапазона 1025-55535. При этом, данный порт не должен использоваться другими приложениями.

    [Quidway]ssh server port ?
    INTEGER<22,1025-55535> Set the port number, the default value is 22

    Соединение с удаленным сервером

    Принцип подключения не зависит от операционной системы. Это могут быть разные версии Windows (7, 10) или популярные дистрибутивы на основе Linux — Ubuntu, CentOS, Debian.

    Подключиться по SSH через PuTTY просто. Для этого нужно следовать приведенной ниже инструкции.

    Способ 1: putty

    1. Подключаем 3G/4G флешку к USB порту компа.
    2. Открываем «Диспетчер устройств» – для этого кликаем правой кнопкой мыши по значку компьютера, заходим в «Свойства». Далее выбираем данный пункт в левом блоке.
    1. Находим свой модем – он может находиться как в разделе «Модемы», так и в «Контроллерах-USB». Кликаем ПКМ по нему, заходим в свойства, переходим на вкладку «Модем». Нам нужно запомнить или записать куда-то номер порта, а также скорость.

    Способ 2: 3g modem mode switcher for zte and huawei

    Сначала вы должны подключить сам модем к компьютеру и подождать, пока все драйвера установятся. Скачиваем программу 3G Modem Mode Switcher for ZTE and Huawei.

    Запускаем единственный exe-файл из архива, и вы увидите вот такую вот программу. После запуска программы нажимаем по кнопке «Только модем» и ждем, пока процедура закончится. Если у вас возникли трудности, то есть вероятность, что данная программа просто устарела, можно попробовать найти более свежее приложение в интернете.

    Скачиваем программу, запускаем. Далее, сначала нажимаем по кнопке «Find Device».

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

    Шаг №1

    Для начала, нужно выполнить ряд действий на компьютере с ОС Windows.

    1. Установить программу для генерации ключа « Putty Key Generator » и запустить ее.
    2. Задать параметр « RSA » и активировать процесс кнопкой « Generate ». Нужно постоянно вводить указателем мыши в зоне окна выполнения операции для успешной генерации.
      Настройка модема через putty
    3. Сохранить private key , для чего скопировать текст из консоли в документ . Предварительно нужно указать тип файла «.ppk ».
      Настройка модема через putty
    4. Затем сохраняем public key. Для этого необходимо скопировать и вставить текст из буфера обмена в любой пустой текстовый файл.
      Настройка модема через putty
    5. Свернуть программу.

    Шаг №2

    Далее необходимо перенести SSH-ключ на сервер Ubuntu, выполнив перечисленные ниже действия.

    1. Запустить программу PuTTY.
    2. Подключиться к серверу, используя его параметры для доступа (хост, порт и SSH-протокол).
    3. Командой « mkdir .ssh » создаем папку «.ssh». Затем командой « ll » проверяем наличие папки.
      Настройка модема через putty
    4. Прописываем права доступа для папки .ssh только для владельца, командой « сhmod 700 .ssh/ ».
      Настройка модема через putty
    5. При помощи команды « cd .ssh » переходим в системную папку « ./ssh ».
      Настройка модема через putty
    6. Создаем файл « authorized_keys », используя редактор nano, командой:

    Прописываем права доступа для файла «

    authorized_keys

    », только для владельца, командой:

    Редактируем файл с помощью команды:

  • Добавляем ваш public key и заканчиваем редактирование файла командой « EOF ».
    Настройка модема через putty
  • Шаг №3

    Возвращаемся к программе PuTTY на Windows 10.

    1. Переходим в программу.
    2. Добавляем данные для подключения.
    3. Переходим во вкладку «Connection SSH Auth». Выбираем для аутентификации сохраненный файл «.ppk».
      Настройка модема через putty
    4. Активируем соединение при помощи нажатия « Open ».
      Настройка модема через putty

    Загрузка…

    Updated on 2022-09-16 GMT+08:00

    Scenarios

    To ensure system security, you are advised to use the key authentication mode to authorize the user who attempts to log in to a BMS. Therefore, you must use an existing key pair or create a new one for remote login authentication.

    • Creating a Key Pair

      If no key pair is available, create one that contains a public and a private key used for login authentication. You can use either of the following methods:

      • Create a key pair using the management console. After the creation, the public key is automatically stored in the system, and the private key is manually stored in a local directory. For details, see Create a Key Pair on the Management Console.
      • Use PuTTYgen to create a key pair, and save both the public and private keys to the local host. For details, see Create a Key Pair Using PuTTYgen. After the creation, import the key pair by following the instructions provided in Import a Key Pair. Then, the key pair can be used.
    • Using an existing key pair

      If a key pair is available locally, for example, generated using PuTTYgen, you can import the public key on the management console so that the system maintains the public key file. For details, see Import a Key Pair.

    Create a Key Pair on the Management Console

    1. Log in to the management console.
    2. Under Computing, click Bare Metal Server.

      The BMS console is displayed.

    3. In the navigation tree, choose Key Pair.
    4. On the right side of the page, click Create Key Pair.
    5. Enter the key name and click OK.

      An automatically populated key name consists of KeyPair- and a 4-digit random number. Change it to an easy-to-remember one, for example, KeyPair-xxxx_bms.

    6. Download the private key file. The file name is the specified key pair name with a suffix of .pem. Store the private key file securely. In the displayed dialog box, click OK.

      You can save the private key file only once. When you create a BMS, provide the key pair name. Each time you log in to the BMS using SSH, you need to provide the private key.

    Create a Key Pair Using PuTTYgen

    1. Obtain the public and private keys.
      1. Double-click puttygen.exe. The PuTTY Key Generator window is displayed.

        Figure 1 PuTTY Key Generator

      2. Click Generate.

        The key generator automatically generates a key pair that consists of a public key and a private key. The public key is that shown in the red box in Figure 2.

        Figure 2 Obtaining the public and private keys

    2. Copy the public key content to a .txt file and save the file in a local directory.

      Do not save the public key by clicking Save public key. Storing a public key by clicking Save public key of PuTTYgen will change the format of the public key content. Such a key cannot be imported to the management console.

    3. Save the private key file.

      The format in which to save your private key varies depending on application scenarios: To ensure BMS security, you are limited to downloading the private key only once.

      • Saving the private key in .ppk format

        When you are required to log in to a Linux BMS using PuTTY, you must use the .ppk private key. To save the private key in .ppk format, perform the following operations:

        1. On the PuTTY Key Generator page, choose File > Save private key.
        2. Save the private key, for example, kp-123.ppk, to the local PC.
      • Saving the private key in .pem format

        When you are required to log in to a Linux BMS using Xshell or attempt to obtain the password for logging in to a Windows BMS, you must use the .pem private key for authentication. To save the private key in .ppk format, perform the following operations:

        1. On the PuTTY Key Generator page, choose Conversions > Export OpenSSH key.

          If you use this private file to obtain the password for logging in to a Windows BMS, when you choose Export OpenSSH key, do not configure Key passphrase. Otherwise, obtaining the password will fail.

        2. Save the private key, for example, kp-123.pem, in a local directory.
    4. After the public key file and private key file are saved, import the public key to the system by referring to Import a Key Pair.

    Import a Key Pair

    If you store a public key by clicking Save public key of PuTTYgen, the format of the public key content will change. Such a key cannot be imported to the management console. To resolve this issue, obtain the public key content in correct format and import the content to the management console. For details, see What Do I Do If a Key Pair Created Using PuTTYgen Cannot Be Imported to the Management Console?

    1. Log in to the management console.
    2. Under Computing, click Bare Metal Server.

      The BMS console is displayed.

    3. In the navigation tree, choose Key Pair.
    4. On the right side of the page, click Import Key Pair.

      Figure 3 Importing a key pair

    5. Use either of the following methods to import the key pair:
      • Selecting a file
        1. On the Import Key Pair page of the management console, click Select File and select the local public key file, for example, the .txt file saved in 2.

          When importing a key pair, ensure that the public key is imported. Otherwise, importing the key pair will fail.

        2. Click OK.

          After the public key is imported, you can change its name.

      • Copying the public key content
        1. Copy the content of the public key in .txt file into the Public Key Content text box.
        2. Click OK.

    Delete a Key Pair

    If you no longer need a key pair, you can delete it. After a key pair is deleted, it cannot be restored. However, you can still use the private key saved locally to log in to the BMS, and the deleted key pair is still displayed in the BMS details.

    • If your key pair has been bound to a BMS and you do not unbind the key pair from the BMS before deleting the key pair, you cannot create a key pair of the same name. When you enter this name when creating or importing a key pair, the console displays an error message indicating that the key pair already exists.
    • If your key pair is not bound to any BMS or has been unbound from the BMS before it is deleted, you can create a key pair of the same name.

    1. Log in to the management console.
    2. Under Computing, click Bare Metal Server.

      The BMS console is displayed.

    3. In the navigation tree, choose Key Pair.
    4. Locate the row that contains the target key pair and click Delete in the Operation column.

    Feedback

    Was this page helpful?

    Provide feedback

    Thank you very much for your feedback. We will continue working to improve the
    documentation.

    The system is busy. Please try again later.

    Hi all,

    When I ssh my huwaei adsl device I get the following error

    ssh_dispatch_run_fatal: Connection to 10.1.108.209 port 22: invalid argument.

    Here is the verbose output

    OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g 1 Mar 2016
    debug1: Reading configuration data /home/notebook/.ssh/config
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: /etc/ssh/ssh_config line 19: Applying options for *
    debug3: kex names ok: [diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1]
    debug2: resolving «10.1.108.209» port 22
    debug2: ssh_connect_direct: needpriv 0
    debug1: Connecting to 10.1.108.209 [10.1.108.209] port 22.
    debug1: Connection established.
    debug1: key_load_public: Permission denied
    debug1: identity file /home/notebook/.ssh/id_rsa type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/notebook/.ssh/id_rsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/notebook/.ssh/id_dsa type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/notebook/.ssh/id_dsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/notebook/.ssh/id_ecdsa type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/notebook/.ssh/id_ecdsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/notebook/.ssh/id_ed25519 type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/notebook/.ssh/id_ed25519-cert type -1
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.2
    debug1: Remote protocol version 1.99, remote software version DOPRA-1.5
    debug1: no match: DOPRA-1.5
    debug2: fd 3 setting O_NONBLOCK
    debug1: Authenticating to 10.1.108.209:22 as ‘root’
    debug3: hostkeys_foreach: reading file «/home/notebook/.ssh/known_hosts»
    debug3: record_hostkey: found key type RSA in file /home/notebook/.ssh/known_hosts:1
    debug3: load_hostkeys: loaded 1 keys from 10.1.108.209
    debug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-rsa-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa
    debug3: send packet: type 20
    debug1: SSH2_MSG_KEXINIT sent
    debug3: receive packet: type 20
    debug1: SSH2_MSG_KEXINIT received
    debug2: local client KEXINIT proposal
    debug2: KEX algorithms: diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,ext-info-c
    debug2: host key algorithms: ssh-rsa-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519
    debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc,3des-cbc
    debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc,3des-cbc
    debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
    debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
    debug2: compression ctos: none,zlib@openssh.com,zlib
    debug2: compression stoc: none,zlib@openssh.com,zlib
    debug2: languages ctos:
    debug2: languages stoc:
    debug2: first_kex_follows 0
    debug2: reserved 0
    debug2: peer server KEXINIT proposal
    debug2: KEX algorithms: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
    debug2: host key algorithms: ssh-rsa
    debug2: ciphers ctos: aes128-cbc,blowfish-cbc,3des-cbc,des-cbc
    debug2: ciphers stoc: aes128-cbc,blowfish-cbc,3des-cbc,des-cbc
    debug2: MACs ctos: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96
    debug2: MACs stoc: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96
    debug2: compression ctos: none
    debug2: compression stoc: none
    debug2: languages ctos:
    debug2: languages stoc:
    debug2: first_kex_follows 0
    debug2: reserved 0
    debug1: kex: algorithm: diffie-hellman-group1-sha1
    debug1: kex: host key algorithm: ssh-rsa
    debug1: kex: server->client cipher: aes128-cbc MAC: hmac-sha1 compression: none
    debug1: kex: client->server cipher: aes128-cbc MAC: hmac-sha1 compression: none
    debug1: sending SSH2_MSG_KEXDH_INIT
    debug2: bits set: 522/1024
    debug3: send packet: type 30
    debug1: expecting SSH2_MSG_KEXDH_REPLY
    debug3: receive packet: type 31
    debug1: Server host key: ssh-rsa SHA256:mG4w6ibjKJ91RWaX6yk6Ft/RV1a71cwnxuj1H2t3wqE
    debug3: hostkeys_foreach: reading file «/home/notebook/.ssh/known_hosts»
    debug3: record_hostkey: found key type RSA in file /home/notebook/.ssh/known_hosts:1
    debug3: load_hostkeys: loaded 1 keys from 10.1.108.209
    debug1: Host ‘10.1.108.209’ is known and matches the RSA host key.
    debug1: Found key in /home/notebook/.ssh/known_hosts:1
    debug2: bits set: 510/1024
    ssh_dispatch_run_fatal: Connection to 10.1.108.209 port 22: invalid argument

    Thanks.

    Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.

    Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

    предыдущая глава | содержание | следующая глава

    • 10.1 «The server’s host key is not cached in the registry»
    • 10.2 «WARNING — POTENTIAL SECURITY BREACH!»
    • 10.3 «SSH protocol version 2 required by our configuration but remote only provides (old, insecure) SSH-1»
    • 10.4 «The first cipher supported by the server is … below the configured warning threshold»
    • 10.5 «Remote side sent disconnect message type 2 (protocol error): «Too many authentication failures for root»»
    • 10.6 «Out of memory»
    • 10.7 «Internal error», «Internal fault», «Assertion failed»
    • 10.8 «Unable to use key file», «Couldn’t load private key», «Couldn’t load this key»
    • 10.9 «Server refused our key», «Server refused our public key», «Key refused»
    • 10.10 «Access denied», «Authentication refused»
    • 10.11 «No supported authentication methods available»
    • 10.12 «Incorrect MAC received on packet» or «Incorrect CRC received on packet»
    • 10.13 «Incoming packet was garbled on decryption»
    • 10.14 «PuTTY X11 proxy: various errors»
    • 10.15 «Network error: Software caused connection abort»
    • 10.16 «Network error: Connection reset by peer»
    • 10.17 «Network error: Connection refused»
    • 10.18 «Network error: Connection timed out»
    • 10.19 «Network error: Cannot assign requested address»

    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.

    10.2 «WARNING — POTENTIAL SECURITY BREACH!»

    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.

    If the server genuinely only supports SSH-1, then you need to either change the «SSH protocol version» setting (see section 4.19.4), or use the -1 command-line option; in any case, you should not treat the resulting connection as secure.

    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.

    10.4 «The first cipher supported by the server is … below the configured warning threshold»

    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.

    On the server, this can be worked around by disabling public-key authentication or (for Sun SSH only) by increasing MaxAuthTries in sshd_config.

    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.

    Понравилась статья? Поделить с друзьями:

    Читайте также:

  • Huawei pixlab x1 ошибка 7f
  • Huawei mobile services ошибка на xiaomi как убрать уведомление
  • Huawei mobile services ошибка как отключить
  • Huawei mobile services отчет об ошибке отключить
  • Huawei health ошибка установки

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии