Some time after the transfer key how debugging will not work, such as modifying chmod 600 id_rsa, there chmod 700 ~ / .ssh, of course, these two are a must, ordinary users do not have ~ / .ssh need to manually create must be revised to 700 permission.
There are profiles add open
RSAAuthentication yes
PubkeyAuthentication yes
Then restart systemctl restart sshd
After these still did not work, because you ssh-copy-id -i ~ / .ssh / id_rsa.pub [email protected]
Get is to let you use
Number of key(s) added: 1
Now try logging into the machine, with: "ssh '[email protected]'"
and check to make sure that only the key(s) you wanted were added.
But in reality you need to specify its own private landing: SSH -i ~ / .ssh / id_rsa [email protected]