Sandal6823@sh.itjust.works to Linux@lemmy.ml · edit-215 days agoWhy disable ssh login with root on a server if I only log in with keys, not password?message-squaremessage-square26fedilinkarrow-up169arrow-down12file-text
arrow-up167arrow-down1message-squareWhy disable ssh login with root on a server if I only log in with keys, not password?Sandal6823@sh.itjust.works to Linux@lemmy.ml · edit-215 days agomessage-square26fedilinkfile-text
On a server I have a public key auth only for root account. Is there any point of logging in with a different account?
minus-squarelordnikon@lemmy.worldlinkfedilinkEnglisharrow-up18arrow-down1·15 days agoYes 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
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