On a server I have a public key auth only for root account. Is there any point of logging in with a different account?

  • @bizdelnick@lemmy.ml
    link
    fedilink
    93 days ago

    It’s a bad practice to log in as root even for administrative tasks. You need to run numerous commands, some of hem can be potentially dangerous while not requiring root privileges. So normally you have an admin user in the sudo/wheel group and need to login to this account. Also, this adds some protection in case your key has leaked.