Why disable ssh login with root on a server if I only log in with keys, not password?
sludgewife @ sludgewife @lemmy.blahaj.zone Posts 0Comments 2Joined 5 mo. ago
sludgewife @ sludgewife @lemmy.blahaj.zone
Posts
0
Comments
2
Joined
5 mo. 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