This question has already been answered:
- Generated keys on my computer (I have a Windows - I tried it with the usual ssh-keygen and putty)
- Added a public key on the server to ~ / .ssh / authorized_keys
- I
ssh root@myhost -i ~/.ssh/id_rsatrying to connect:ssh root@myhost -i ~/.ssh/id_rsaand at this step I will be asked for the user's password ... It comes with a password, but why is this happening? I want to enter without a password !!! Only by file.
PubkeyAuthentication yes installed. I have CentOS 7 in a virtual machine on the same computer (I want to connect to it).
$ chmod -R go= ~/.ssh; chmod go=~$ chmod -R go= ~/.ssh; chmod go=~. generally duplicate, for example, this issue . - aleksandr barakingo? I do not think that the problem is in the file permissions. I did the instructions and put the .ssh folder on the right 700, and the authorised_keys 600 file was the PECHAPPER$ ls -ld ~ ~/.ssh ~/.ssh/authorized_keysoutput$ ls -ld ~ ~/.ssh ~/.ssh/authorized_keys. 3. if the permissions are ok, give the output$ ssh -vvv ...and what sshd writes to the server in the log when trying to execute this command. - aleksandr barakin