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

  • sludgewife@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 days 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