Hello !!!!!
Tune the connection to ssh using public key, but somehow - it does not work on it to connect.
What I did:
1. Created a public and private key
2. Public copied to the authorized_keys file and transfer to the private car, which will connect
3. Transform our private key in the key supported Putty.
4. Then I go through Putty enter your login and instead, that would connect to a public key to enter the password login
Give you the config file ..... might be in it what - a mistake
Code:
# $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