Answer the question
In order to leave comments, you need to log in
SSH authentication not working with a key without a password?
There is a server on Ubuntu 14.04
During installation, I created an encrypted partition and encrypted the user's folder. I set up authentication by key and everything works, but it's kind of strange. By key, it only lets me in when I log in "physically" on the server under the same user. If you log out and try to log in again via putty via SSH, then an error pops up like this:
I feel that the problem lies in dimensional encryption, and this topic prompted me to such thoughts . ssh authentication on the server does not work without login (user post ixSci ).
Answer the question
In order to leave comments, you need to log in
To login via ssh with key authentication, the ~<login>/.ssh/authorized_keys file must be available to the sshd daemon in the default configuration on the server. Without the user logging in, the files in the user's home directory are not accessible to the daemon. Here is a solution to this problem, in which public keys are not stored in users' home directories, but in /etc/sshd.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question