For too long, I have not worked on the server, now the memory is not being returned, there is already authorization by key for root and for another user, but there is a need to create another and popular Server refused our key.
- I created a private and public key in puttygen (rsa), upload the file to my user's pub directory (I also looked at how it was done for previous users) /var/www/%user%/data/.sh (isp)
- I execute chown from the root: -R% user%: users / var / www /% user% / data /
- I put on the .ssh right 700.
- I execute the ssh-keygen -i -f /var/www/%user%/data/.sh/key.pub >> /var/www/%user%/data/.sh/authorized_keys command
- I put on authorized_keys rights 600. I see it now deleted the old logs I put in the sshd config LogLevel DEBUG, I restarted sshd and the logs are generally empty. How to make this authorization?
/var/www/%user%come from? Usually the home directory is/home/%user%- Pavel Mayorov.sshmust be in the user's home directory, otherwise it’s all useless. make sure that this is true. - etki