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

  • grrgyle
    link
    fedilink
    19 months ago

    Maybe if you escaped the command like \\type sudo?

    • @sludgewife@lemmy.blahaj.zone
      link
      fedilink
      English
      29 months ago

      no, if the attacker can change files in your account, they can read every byte you type in and respond with anything, including pretending to be a normal shell. im not sure how to prevent ssh from running commands in your shell