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

  • @lordnikon@lemmy.world
    link
    fedilink
    English
    177 days ago

    Yes it’s always better to login with a user and sudo so your commands are logged also having disable passwords for ssh but still using passwords for sudo gives you the best protection

    • @grrgyle@slrpnk.net
      link
      fedilink
      3
      edit-2
      7 days ago

      Also double check that sudo is the right command, by doing which sudo. Something I just learned to be paranoid of in this thread.

      Unless which is also compromised, my god…