Doubts about public key authentication

  • Hi,


    just implemented public key authentication for ssh. I've generated the keys for my user, so not for root, with Puttygen.


    I have some questions:


    1. I added the public key for my user in "Access Right Management | Users | <USERNAME> | Edit | Public Keys", so why i had a private and a public key also for user root in the directory ".ssh"? I deleted them for my tests, hope this was not a mistake.


    2. Testing i deleted the public key for my user from "Access Right Management | Users | <USERNAME> | Edit | Public Keys" and strangely i can still log in in ssh with public key. How possible?


    3. Connected to my previous question, if for root the key is saved in ".ssh", where is it saved for the users? Can't find it.


    4. Why for root user i had also the private key there? I thought that was intended to stay only on the device you want to connect from.



    Thanks in advance if you will have the patience to reply!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!