Нет ответов
angol
angol аватар
User offline. Last seen 30 недель 3 дня ago. Offline
Зарегистрирован: 07/24/2011

Здравствуйте!!!!!

Настраиваю подключение по ssh используя публичный ключ, но все как - то не получается по нем подключиться.
Что я сделал:

1. Создал публичный и приватный ключ
2. Публичный скопировал в файл authorized_keys а секретный перенос на машину, с которой будем подключаться
3. Преобразовать наш закрытый ключ, в ключ поддерживаемый Putty.
4. Потом захожу через Putty ввожу логин и вместо того, что бы пройти аунтентификацию по публичному ключу ввожу пароль для логина

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

  1.  
  2. # $OpenBSD: sshd_config,v 1.81 2009/10/08 14:03:41 markus Exp $
  3.  
  4. # This is the sshd server system-wide configuration file. See
  5. # sshd_config(5) for more information.
  6.  
  7. # This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin
  8.  
  9. # The strategy used for options in the default sshd_config shipped with
  10. # OpenSSH is to specify options with their default value where
  11. # possible, but leave them commented. Uncommented options change a
  12. # default value.
  13.  
  14.  
  15. Port 22
  16. Protocol 2
  17.  
  18. # Ключ сервера для протокола версии 1
  19. HostKey /etc/ssh/ssh_host_key
  20. # Ключи rsa и dsa для ssh версии 2
  21. HostKey /etc/ssh/ssh_host_rsa_key
  22. HostKey /etc/ssh/ssh_host_dsa_key
  23.  
  24. KeyRegenerationInterval 3600
  25. ServerKeyBits 1024
  26.  
  27. LoginGraceTime 600
  28. PermitRootLogin yes
  29. StrictModes yes
  30.  
  31. RSAAuthentication yes
  32. PubkeyAuthentication yes
  33. AuthorizedKeysFile .ssh/authorized_keys
  34.  
  35.  
  36. #RhostsAuthentication no
  37. RhostsRSAAuthentication no
  38. #IgnoreHosts yes
  39. IgnoreRhosts yes
  40. HostbasedAuthentication no
  41. IgnoreUserKnownHosts no
  42. UseLogin yes
  43. PasswordAuthentication yes
  44. PermitEmptyPasswords no
  45. UsePAM yes
  46.  
  47. X11Forwarding no
  48. #X11UseLocalhost yes
  49. PrintMotd yes
  50. PrintLastLog yes
  51. #KeepAlive yes
  52. MaxStartups 10
  53.  
  54. Subsystem sftp /usr/lib/ssh/sftp-server
  55.  

Заранее благодарю!