Re:/bin/false is not security (2005)
by inetknght on Thursday December 28, 2017 @05:28PM
(#16025561)
I don't see how the authentication used for a user on a local machine has anything to do with the authentication of a user on a remote machine unless both are using the same domain authentication (RADIUS, Active Directory, etc). Even then, there can be cache involved.
[ Parent
| on HN ]
Re:/bin/false is not security (2005)
by closeparen on Thursday December 28, 2017 @05:42PM
(#16025681)
There could be a local compromise that exposes the SSH keys (for login) but not the remote password (for sudo).
Re:/bin/false is not security (2005)
by inetknght on Thursday December 28, 2017 @05:57PM
(#16025814)
My parent comment indicates that the password needs to be different. Your comment does not support that.
First, sudo should not be cached for this very reason. Second, agent caching should never be enabled for this very reason. Third, agent forwarding should never be enabled for this very reason.
Indeed, using key authentication to log in and then using a password to upgrade to sudo is, I think, very reasonable.
> Indeed, using key authentication to log in and then using a password to upgrade to sudo is, I think, very reasonable.
which most often is not the default on vps/root/clouds, that's basically my point. if you use sudo, use it with a password.