PDA

View Full Version : [ubuntu] Sudo in a private-key authenticated SSH session



algernon83
December 14th, 2012, 12:39 AM
I've got SSH set up on my home server to allow private-key authentication only to log on. Can Sudo be configured to re-check the authentication key instead of prompting for a password? Or would there be no security benefit to this, and I should just disable passwords for Sudo?

CharlesA
December 14th, 2012, 12:57 AM
I do not think it can be configured to prompt for your key again.

In any case, once someone is connected via private key, they would still need to know the user password in order to use sudo, so it's two layers of security.

JKyleOKC
December 14th, 2012, 01:11 AM
Remember that all of the SSH traffic is encrypted, so when you type in your password for sudo, it does not go over the wire in plain text. Thus it's still fully secure.