- Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии
Вс, 07/24/2011 - 12:03
Здравствуйте!!!!!
Настраиваю подключение по ssh используя публичный ключ, но все как - то не получается по нем подключиться.
Что я сделал:
1. Создал публичный и приватный ключ
2. Публичный скопировал в файл authorized_keys а секретный перенос на машину, с которой будем подключаться
3. Преобразовать наш закрытый ключ, в ключ поддерживаемый Putty.
4. Потом захожу через Putty ввожу логин и вместо того, что бы пройти аунтентификацию по публичному ключу ввожу пароль для логина
Предоставляю конфигурационный файл вашему вниманию.....может быть в нем какая - то ошибка
# $OpenBSD: sshd_config,v 1.81 2009/10/08 14:03:41 markus Exp $ # This is the sshd server system-wide configuration file. See # sshd_config(5) for more information. # This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin # The strategy used for options in the default sshd_config shipped with # OpenSSH is to specify options with their default value where # possible, but leave them commented. Uncommented options change a # default value. Port 22 Protocol 2 # Ключ сервера для протокола версии 1 HostKey /etc/ssh/ssh_host_key # Ключи rsa и dsa для ssh версии 2 HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key KeyRegenerationInterval 3600 ServerKeyBits 1024 LoginGraceTime 600 PermitRootLogin yes StrictModes yes RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys #RhostsAuthentication no RhostsRSAAuthentication no #IgnoreHosts yes IgnoreRhosts yes HostbasedAuthentication no IgnoreUserKnownHosts no UseLogin yes PasswordAuthentication yes PermitEmptyPasswords no UsePAM yes X11Forwarding no #X11UseLocalhost yes PrintMotd yes PrintLastLog yes #KeepAlive yes MaxStartups 10 Subsystem sftp /usr/lib/ssh/sftp-server
Заранее благодарю!



