Network error permission denied putty

I have used PuTTy.exe for an SSH client. But putty.exe is not working for a 64 bit Windows OS. It works perfectly 32 bit Win OS. Questions: Am I making some mistakes. If so please can you help? Is...

I have used PuTTy.exe for an SSH client. But putty.exe is not working for a 64 bit Windows OS. It works perfectly 32 bit Win OS.

Questions:

  • Am I making some mistakes. If so please can you help?
  • Is there any app which works on both 32 and 64 machine for win os?
  • Is there any cmd commands to connect ssh?

Info:

  • Putty.exe ver 0.63.10125.0.
  • Run as administrator used no use.
  • firewall disabled no use.
  • putty.exe runs on a separate drive no use.

Error:

Network error: Permission denied

SharpC's user avatar

SharpC

6,5784 gold badges45 silver badges39 bronze badges

asked Feb 5, 2014 at 7:46

Prasaathviki's user avatar

PrasaathvikiPrasaathviki

1,1272 gold badges11 silver badges22 bronze badges

1

Oh I found the solution for this problem.
Its due to anti virus (ex: norton).
Anti virus blocks all the network permissions.
So I have disabled all smart firewall and browser protection from anti virus.
it worked fine.
Please disable all third party firewalls too then it will work. It is not 32 and 64 bit issue I think so.

PrakashG's user avatar

PrakashG

1,6365 gold badges19 silver badges30 bronze badges

answered Feb 6, 2014 at 6:23

Prasaathviki's user avatar

PrasaathvikiPrasaathviki

1,1272 gold badges11 silver badges22 bronze badges

It’s usually a firewall problem, especially with third party firewalls, in my case TinyWall for Windows. Simply allow the program access.

Laurel's user avatar

Laurel

5,90314 gold badges30 silver badges56 bronze badges

answered Jun 30, 2016 at 21:03

Olubodun Agbalaya's user avatar

I have McAfee Endpoint Security and I had the same problem. Whenever I try to connect with putty I get «permission denied». In this case, I opened McAfee Endpoint Security, went to «Firewall». In «Firewall» I went to «RULES» and pressed «Add Rule», wrote the rule name and went to the bottom to «Executables». In «Executables» I pressed «Add», then «Browse», and added PUTTY executable. That solved this problem for me.

answered Jan 29, 2019 at 5:37

rodolk's user avatar

rodolkrodolk

5,4773 gold badges27 silver badges33 bronze badges

1

Just in case someone comes across the same problem:

At some point I started to receive the following errors when trying to run port forwarding

Event Log: Local port 2001 SOCKS dynamic forwarding failed: Network error: Permission denied

After struggling with that for a while, installed Bitwise SSH where the error would appear as:

Failed to enable SOCKS/HTTP proxy forwarding on 127.0.0.1:2001: Address is already in use; bind() in ListeningSocket::StartListening() failed: Windows error 10013: An attempt was made to access a socket in a way forbidden by its access permissions.

So it was clear that the port is in use — although that didn’t show up in CurrPorts. So I resolved that by changing the port number

answered Jan 27, 2020 at 14:54

Pavel Paltsev's user avatar

I have used PuTTy.exe for an SSH client. But putty.exe is not working for a 64 bit Windows OS. It works perfectly 32 bit Win OS.

Questions:

  • Am I making some mistakes. If so please can you help?
  • Is there any app which works on both 32 and 64 machine for win os?
  • Is there any cmd commands to connect ssh?

Info:

  • Putty.exe ver 0.63.10125.0.
  • Run as administrator used no use.
  • firewall disabled no use.
  • putty.exe runs on a separate drive no use.

Error:

Network error: Permission denied

SharpC's user avatar

SharpC

6,5784 gold badges45 silver badges39 bronze badges

asked Feb 5, 2014 at 7:46

Prasaathviki's user avatar

PrasaathvikiPrasaathviki

1,1272 gold badges11 silver badges22 bronze badges

1

Oh I found the solution for this problem.
Its due to anti virus (ex: norton).
Anti virus blocks all the network permissions.
So I have disabled all smart firewall and browser protection from anti virus.
it worked fine.
Please disable all third party firewalls too then it will work. It is not 32 and 64 bit issue I think so.

PrakashG's user avatar

PrakashG

1,6365 gold badges19 silver badges30 bronze badges

answered Feb 6, 2014 at 6:23

Prasaathviki's user avatar

PrasaathvikiPrasaathviki

1,1272 gold badges11 silver badges22 bronze badges

It’s usually a firewall problem, especially with third party firewalls, in my case TinyWall for Windows. Simply allow the program access.

Laurel's user avatar

Laurel

5,90314 gold badges30 silver badges56 bronze badges

answered Jun 30, 2016 at 21:03

Olubodun Agbalaya's user avatar

I have McAfee Endpoint Security and I had the same problem. Whenever I try to connect with putty I get «permission denied». In this case, I opened McAfee Endpoint Security, went to «Firewall». In «Firewall» I went to «RULES» and pressed «Add Rule», wrote the rule name and went to the bottom to «Executables». In «Executables» I pressed «Add», then «Browse», and added PUTTY executable. That solved this problem for me.

answered Jan 29, 2019 at 5:37

rodolk's user avatar

rodolkrodolk

5,4773 gold badges27 silver badges33 bronze badges

1

Just in case someone comes across the same problem:

At some point I started to receive the following errors when trying to run port forwarding

Event Log: Local port 2001 SOCKS dynamic forwarding failed: Network error: Permission denied

After struggling with that for a while, installed Bitwise SSH where the error would appear as:

Failed to enable SOCKS/HTTP proxy forwarding on 127.0.0.1:2001: Address is already in use; bind() in ListeningSocket::StartListening() failed: Windows error 10013: An attempt was made to access a socket in a way forbidden by its access permissions.

So it was clear that the port is in use — although that didn’t show up in CurrPorts. So I resolved that by changing the port number

answered Jan 27, 2020 at 14:54

Pavel Paltsev's user avatar

Содержание

  1. Устранение неполадок SSH: ошибки аутентификации
  2. Требования
  3. Основные ошибки
  4. Отказ в доступе (парольная аутентификация)
  5. Отказ в доступе (аутентификация на основе SSH-ключей)
  6. Консоль не поддерживает пароли
  7. Устранение неполадок
  8. Проверка доступных методов аутентификации
  9. Настройка прав доступа и собственности
  10. Проверка открытого и закрытого ключа
  11. OpenSSH 7 и устаревшие ключевые алгоритмы
  12. Заключение
  13. Putty network error permission denied
  14. Answered by:
  15. Question
  16. Putty network error permission denied
  17. Question
  18. Глава 10: Common error messages
  19. 10.1 «The server’s host key is not cached in the registry»
  20. 10.2 «WARNING — POTENTIAL SECURITY BREACH!»
  21. 10.3 «SSH protocol version 2 required by our configuration but remote only provides (old, insecure) SSH-1»
  22. 10.4 «The first cipher supported by the server is . below the configured warning threshold»
  23. 10.5 «Remote side sent disconnect message type 2 (protocol error): «Too many authentication failures for root»»
  24. 10.6 «Out of memory»
  25. 10.7 «Internal error», «Internal fault», «Assertion failed»
  26. 10.8 «Unable to use key file», «Couldn’t load private key», «Couldn’t load this key»
  27. 10.9 «Server refused our key», «Server refused our public key», «Key refused»
  28. 10.10 «Access denied», «Authentication refused»
  29. 10.11 «No supported authentication methods available»
  30. 10.12 «Incorrect MAC received on packet» or «Incorrect CRC received on packet»
  31. 10.13 «Incoming packet was garbled on decryption»
  32. 10.14 «PuTTY X11 proxy: various errors»
  33. 10.15 «Network error: Software caused connection abort»
  34. 10.16 «Network error: Connection reset by peer»
  35. 10.17 «Network error: Connection refused»
  36. 10.18 «Network error: Connection timed out»
  37. 10.19 «Network error: Cannot assign requested address»

Устранение неполадок SSH: ошибки аутентификации

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

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

После установления соединения и инициирования протокола система может проверить подключение пользователя к системе. SSH поддерживает множество механизмов аутентификации. В этом руководстве рассмотрены два наиболее распространенных механизма: парольная аутентификация и аутентификация на основе SSH-ключей.

Требования

  • Убедитесь, что можете подключиться к виртуальному серверу через консоль.
  • Проверьте панель на предмет текущих проблем, влияющих на работу и состояние сервера и гипервизора.

Основные ошибки

Отказ в доступе (парольная аутентификация)

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

Клиенты PuTTY и OpenSSH выдают такое сообщение:

root@111.111.111.111’s password:
Permission denied (publickey,password).
PuTTY Error output
root@111.111.111.111’s password:
Access denied
Server sent disconnect message
type 2 (protocol error):
«Too many authentication failures for root»

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

  • Убедитесь, что вы используете правильное имя пользователя. В CoreOS используйте пользователя core. В FreeBSD используйте аккаунт пользователя freebsd.
  • Парольная аутентификация пользователя может быть нарушена. Проверьте, поддерживает ли парольную аутентификацию веб-консоль сервера. Если она не поддерживает пароли, вам придется попытаться сбросить пароль или обратиться за помощью к службе поддержки, чтобы восстановить доступ.
  • Убедитесь, что сервер поддерживает парольную аутентификацию.

Отказ в доступе (аутентификация на основе SSH-ключей)

Этот метод использует криптографические ключи для аутентификации пользователя.

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

Вы можете получить такую ошибку:

Permission denied (publickey).
PuTTY Error output
Disconnected: No supported authentication methods available (server sent: publickey)

Многие наиболее распространенные проблемы, связанные с аутентификацией на основе ключей, вызваны неправильными правами доступа к файлам или правами собственности. Чтобы устранить проблему, попробуйте сделать следующее:

  • Убедитесь, что файл authorized_keys и сам закрытый ключ имеют правильные права доступа и собственности.
  • Убедитесь, что сервер поддерживает аутентификацию на основе ключей SSH.
  • Убедитесь, что клиент SSH может получить закрытый ключ. Если вы используете PuTTY, убедитесь, что ключи SSH правильно настроены в сессии. Если вы используете OpenSSH, убедитесь, что у закрытого ключа SSH есть соответствующие привилегии.
  • Убедитесь, что файл authorized_keys содержит правильный открытый ключ, и что открытый ключ добавлен на сервер.
  • Возможно, вы используете закрытый ключ, который больше не поддерживается сервисом OpenSSH. Эта ошибка обычно затрагивает серверы OpenSSH 7+ при использовании закрытого DSA-ключа SSH. Обновите конфигурацию сервера.

Консоль не поддерживает пароли

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

В консоли появляется форма аутентификации:

Ubuntu 14.04.4 LTS server tty1
server Login:
Password:

Но после ввода пароля появляется ошибка:

После сброса пароля вы получите:

You are required to change your password immediately (root enforced)
Changing password for root.
(Current) UNIX Password:

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

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

Enter new UNIX password:
Retype new UNIX password:

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

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

Устранение неполадок

Проверка доступных методов аутентификации

Если вы используете подробный вывод или следите за логами SSH-клиента, убедитесь, что в сообщении, описывающем методы аутентификации, указаны password и/или publickey.

debug1: Authentications that can continue: publickey,password

Если вы не нашли в списке метод аутентификации, который хотите использовать, откройте файл /etc/ssh/sshd_config. В нём часто допускается ошибка: PasswordAuthentication имеет значение yes, а PermitRootLogin – no или without-password для пользователя root.

Исправьте эту ошибку, перезапустите сервис.

Настройка прав доступа и собственности

Сервер и клиент OpenSSH имеют строгие требования к привилегиям и правам собственности на файлы ключей.

Сервер и клиент OpenSSH должны иметь следующие права:

./ssh должен принадлежать текущему аккаунту.

/.ssh/authorized_keys должен принадлежать текущему аккаунту.

Кроме того, клиент должен также иметь такие права:

/ .ssh / config – 600.

Эти изменения можно внести с помощью консоли.

Проверка открытого и закрытого ключа

Если вы забыли, какой закрытый ключ соответствует тому или иному открытому ключу, инструменты OpenSSH и PuTTY помогут вам сгенерировать открытый ключ на основе зарытого ключа. Полученный результат вы можете сравнить с файлом

Чтобы восстановить открытый ключ на основе закрытого ключа в среде OpenSSH, используйте ssh-keygen и укажите путь к закрытому ключу.

/.ssh/id_rsa
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCfBiMwCU1xoVVp0VbSYV3gTDV/jB57IHdILQ8kJ2622//Lmi4gDPlxA6HXVKq8odkGD/5MjqUw85X2rwEbhoBul74+LCToYJvvvBaDPCgg5z1icCKIJ1m/LJBrGNqPKCgqFWu0EH4/EFP2XIQqWqX1BZtJu/2YWrTr+xFOE/umoYmOd+t3dzQqMsv/2Aw+WmA/x/B9h+41WrobDgCExYNLPYcD0PO7fpsa8CcrZCo+TUWCe7MgQQCSM6WD4+PuYFpUWGw3ILTT51bOxoUhAo19U8B2QqxbMwZomzL1vIBhbUlbzyP/xgePTUhEXROTiTFx8W9yetDYLkfrQI8Q05+f

В среде PuTTY команда PuTTYgen.exe загружает интерфейс, в котором можно использовать опцию Load и импортировать закрытый ключ. PuTTY хранит такие файлы в формате .ppk (нужно знать место хранения файла).

Импортировав ключ, вы увидите окно с разделом Public key for pasting into OpenSSH authorized_keys file. В нём и будет искомый открытый ключ. Выделите текст и вставьте его в файл. Он сгенерирует открытый ключ.

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCfBiMwCU1xoVVp0VbSYV3gTDV/jB57IHdILQ8kJ2622//Lmi4gDPlxA6HXVKq8odkGD/5MjqUw85X2rwEbhoBul74+LCToYJvvvBaDPCgg5z1icCKIJ1m/LJBrGNqPKCgqFWu0EH4/EFP2XIQqWqX1BZtJu/2YWrTr+xFOE/umoYmOd+t3dzQqMsv/2Aw+WmA/x/B9h+41WrobDgCExYNLPYcD0PO7fpsa8CcrZCo+TUWCe7MgQQCSM6WD4+PuYFpUWGw3ILTT51bOxoUhAo19U8B2QqxbMwZomzL1vIBhbUlbzyP/xgePTUhEXROTiTFx8W9yetDYLkfrQI8Q05+f imported-openssh-key

Можно проигнорировать комментарий после открытого ключа (imported-openssh-key).

В любом случае этот открытый ключ нужно добавить в файл

OpenSSH 7 и устаревшие ключевые алгоритмы

В системах с OpenSSH 7 (FreeBSD и CoreOS по умолчанию) старые ключи DSA не поддерживаются.

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

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

Однако в качестве обходного пути вы можете установить в PubkeyAcceptedKeyTypes значение +ssh-dss в файле /etc/ssh/sshd_config.

Заключение

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

Источник

Putty network error permission denied

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Answered by:

Question

Hello, I posted this here and they send me to your TechNet forum. Because i misread the topic i also posted it Rights Management Services» href=»http://social.technet.microsoft.com/Forums/en/rms/thread/d86ce2fe-dbf2-4abe-b43c-1c1759c05d54″ target=»_blank» title=»Security Forums > Rights Management Services»> here and the owner suggested i post it under Windows Server Forums > Security . I hope i finally am in the right place.

I use windows 7 home premium x64 and want to connect to a linux server through a vpn tunnel with Putty (SSH). I set Windows Firewall to block all outbound traffic by default and allow only those which are in my rulelist to pass through.

I allow putty to connect inbound and outbound but i get the message «fatal error ->network error: permission denied». It seems that the Windows Firewall is blocking putty even when i set it to allow. I found a thread a Vista forum here with the same issue. The support didnt answer, but the user figured the port which is part of the problem. He opened for TCP on port 22 for all outgoing applications. This works, but doesnt fullfill my security policy.

Which application (other than putty) do i need to allow TCP outgoing on port 22 to avoid this error?

PS: I have set my FW to tell me when it is blocking an application and i dont get any messages even when it blocks. I get only the error message from putty and have to guess that its my firewall blocking.

B) Is there a tool/buildt in function that allows me to check what gets blocked?

B1) Can i set my system to log attempts of outgoing traffic?

Источник

Putty network error permission denied

Question

Hello, I posted this here and they send me to your TechNet forum. Because i misread the topic i also posted it Rights Management Services» href=»http://social.technet.microsoft.com/Forums/en/rms/thread/d86ce2fe-dbf2-4abe-b43c-1c1759c05d54″ target=»_blank» title=»Security Forums > Rights Management Services»> here and the owner suggested i post it under Windows Server Forums > Security . I hope i finally am in the right place.

I use windows 7 home premium x64 and want to connect to a linux server through a vpn tunnel with Putty (SSH). I set Windows Firewall to block all outbound traffic by default and allow only those which are in my rulelist to pass through.

I allow putty to connect inbound and outbound but i get the message «fatal error ->network error: permission denied». It seems that the Windows Firewall is blocking putty even when i set it to allow. I found a thread a Vista forum here with the same issue. The support didnt answer, but the user figured the port which is part of the problem. He opened for TCP on port 22 for all outgoing applications. This works, but doesnt fullfill my security policy.

Which application (other than putty) do i need to allow TCP outgoing on port 22 to avoid this error?

PS: I have set my FW to tell me when it is blocking an application and i dont get any messages even when it blocks. I get only the error message from putty and have to guess that its my firewall blocking.

B) Is there a tool/buildt in function that allows me to check what gets blocked?

B1) Can i set my system to log attempts of outgoing traffic?

Источник

Глава 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.

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.

Источник

  • Remove From My Forums
  • Question

  • Hello, I posted this
    here and they send me to your TechNet forum. Because i misread the topic i also posted it

    here and the owner suggested i post it under Windows Server Forums
    > Security .  I hope i finally am in the right place.

    I use windows 7 home premium x64 and want to connect to a linux server through a vpn tunnel with Putty (SSH). I set Windows Firewall to block all outbound traffic by default and allow only those which are in my rulelist to pass through.

    I allow putty to connect inbound and outbound but i get the message «fatal error ->network error: permission denied». It seems that the Windows Firewall is blocking putty even when i set it to allow. I found a thread a Vista forum

    here with the same issue. The support didnt answer, but the user figured the port which is part of the problem. He opened for TCP on port 22 for
    all outgoing applications. This works, but doesnt fullfill my security policy.

    Which application (other than putty) do i need to allow TCP outgoing on port 22 to avoid this error?

    PS: I have set my FW to tell me when it is blocking an application and i dont get any messages even when it blocks. I get only the error message from putty and have to guess that its my firewall blocking.

    B) Is there a tool/buildt in function that allows me to check what gets blocked?

    B1) Can i set my system to log attempts of outgoing traffic?

    • Edited by

      Thursday, October 28, 2010 10:06 AM
      extended with suggestive questions

Answers

  • Thanks for nothing… solved it myself.

    The error is inside windows 7, the location of the file putty.exe in combination with the path set in the firewall. It doesnt make sense but thats windows.

    I only get the error when the firewall includes %username% in the path of allowed application rule. The solution is to move putty.exe to another location so the path doesnt include %username%.

    My user account is an administrator account. F*** windows c***, always some bs in the background that compromises the user and the whole systems integrity and consistens.

    • Marked as answer by
      Fusch
      Saturday, November 6, 2010 10:01 AM

In putty, I have the following:

  • Session
    • hostname:username@azurecontainsersvc_mgmt.eastus.cloudapp.azure.com
    • port: 2200
  • Connection>SSH>Tunnels L80 localhost:80
  • Connection>SSH>Auth Private key: my_public_key.ppk

Ans when I connect, it asks me for my password, everything looks great, but I get access denied. I have tried running as admin with the same results.

2017-05-02 11:28:37 Connecting to [IP_Address] port 2200

2017-05-02 11:28:37 We claim version: SSH-2.0-PuTTY_Release_0.69

2017-05-02 11:28:37 Server version: SSH-2.0-OpenSSH_7.2p2
Ubuntu-4ubuntu2.1

2017-05-02 11:28:37 Using SSH protocol version 2

2017-05-02 11:28:37 Doing ECDH key exchange with curve Curve25519 and
hash SHA-256

2017-05-02 11:28:37 Server also has ecdsa-sha2-nistp256/ssh-rsa host
keys, but we don’t know any of them

2017-05-02 11:28:37 Host key fingerprint is:

2017-05-02 11:28:37 ssh-ed25519 256 [Fingerprint]

2017-05-02 11:28:37 Initialised AES-256 SDCTR client->server
encryption

2017-05-02 11:28:37 Initialised HMAC-SHA-256 client->server MAC
algorithm

2017-05-02 11:28:37 Initialised AES-256 SDCTR server->client
encryption

2017-05-02 11:28:37 Initialised HMAC-SHA-256 server->client MAC
algorithm

2017-05-02 11:28:37 Reading key file «C:path_to_certsprivatekey.ppk»

2017-05-02 11:28:37 Offered public key

2017-05-02 11:28:37 Offer of public key accepted

2017-05-02 11:28:55 Sent public key signature

2017-05-02 11:28:55 Access granted

2017-05-02 11:28:55 Opening session as main channel

2017-05-02 11:28:56 Opened main channel

2017-05-02 11:28:56 Local port 80 forwarding to localhost:80 failed:
Network error: Permission denied

2017-05-02 11:28:56 Allocated pty (ospeed 38400bps, ispeed 38400bps)

2017-05-02 11:28:56 Started a shell/command

Any ideas? I am lost — thank you!

Not sure if it matters, but I am trying to connect to a DC/OS cluster on Azure: https://docs.microsoft.com/en-us/azure/container-service/container-service-connect

In putty, I have the following:

  • Session
    • hostname:username@azurecontainsersvc_mgmt.eastus.cloudapp.azure.com
    • port: 2200
  • Connection>SSH>Tunnels L80 localhost:80
  • Connection>SSH>Auth Private key: my_public_key.ppk

Ans when I connect, it asks me for my password, everything looks great, but I get access denied. I have tried running as admin with the same results.

2017-05-02 11:28:37 Connecting to [IP_Address] port 2200

2017-05-02 11:28:37 We claim version: SSH-2.0-PuTTY_Release_0.69

2017-05-02 11:28:37 Server version: SSH-2.0-OpenSSH_7.2p2
Ubuntu-4ubuntu2.1

2017-05-02 11:28:37 Using SSH protocol version 2

2017-05-02 11:28:37 Doing ECDH key exchange with curve Curve25519 and
hash SHA-256

2017-05-02 11:28:37 Server also has ecdsa-sha2-nistp256/ssh-rsa host
keys, but we don’t know any of them

2017-05-02 11:28:37 Host key fingerprint is:

2017-05-02 11:28:37 ssh-ed25519 256 [Fingerprint]

2017-05-02 11:28:37 Initialised AES-256 SDCTR client->server
encryption

2017-05-02 11:28:37 Initialised HMAC-SHA-256 client->server MAC
algorithm

2017-05-02 11:28:37 Initialised AES-256 SDCTR server->client
encryption

2017-05-02 11:28:37 Initialised HMAC-SHA-256 server->client MAC
algorithm

2017-05-02 11:28:37 Reading key file «C:path_to_certsprivatekey.ppk»

2017-05-02 11:28:37 Offered public key

2017-05-02 11:28:37 Offer of public key accepted

2017-05-02 11:28:55 Sent public key signature

2017-05-02 11:28:55 Access granted

2017-05-02 11:28:55 Opening session as main channel

2017-05-02 11:28:56 Opened main channel

2017-05-02 11:28:56 Local port 80 forwarding to localhost:80 failed:
Network error: Permission denied

2017-05-02 11:28:56 Allocated pty (ospeed 38400bps, ispeed 38400bps)

2017-05-02 11:28:56 Started a shell/command

Any ideas? I am lost — thank you!

Not sure if it matters, but I am trying to connect to a DC/OS cluster on Azure: https://docs.microsoft.com/en-us/azure/container-service/container-service-connect

  • Remove From My Forums
  • Question

  • I use windows 7 home premium x64 and want to connect to a linux server through a vpn tunnel with Putty (SSH). I set Windows Firewall to block all outbound traffic by default and allow only those which are in my rulelist to pass through.

    I allow putty to connect inbound and outbound but i get the message «fatal error ->network error: permission denied». It seems that the Windows Firewall is blocking putty even when i set it to allow.

    PS: I found a thread a Vista forum
    here with the same issue. The support didnt answer, but the user figured the port which is part of the problem. He opened for TCP on port 22 for all outgoing applications. This works, but doesnt fullfill my security policy.

    Which application (other than putty) do i need to allow TCP outgoing on port 22 to avoid this error?

    • Edited by

      Wednesday, October 27, 2010 8:06 PM

    • Moved by
      Jim Groves
      Tuesday, November 16, 2010 11:21 PM
      (From:Rights Management Services)

Answers

  • Sorry, Fusch. I didn’t mean to send you back to where you came from. Trust me, it’s frustrating to be the owner of the only forum under the category of Security. Many people don’t realize that Rights Management Services is a special server role in Windows
    Server, and not a generic description of security categories, we we get lots of questions that are «off topic.»

    As you can see, Microsoft hosts lots of forums, and the people who respond in each of those forums tend to be specialists in the particular forum areas. So asking a question about A in a forum that is about B isn’t likely to get a useful answer
    for you. And as you can tell from your own experience, the people who respond in Forum B might not even know the best forum for you to use to get your question about A answered.

    But I’ll give it another try: You might try posting your question at the Windows Server Security forum (http://social.technet.microsoft.com/Forums/en-US/winserversecurity/threads).

    Good luck.


    Jim Groves Sr. Technical Writer Server & Cloud Division Microsoft

    • Marked as answer by
      Jim Groves
      Friday, October 29, 2010 9:04 PM

Понравилась статья? Поделить с друзьями:
  • Network error no route to host
  • Network error message fix kit
  • Network error maybe timeout перевод
  • Network error maybe timeout config tool dahua
  • Network error ioexception too many open files