Background
I've recently been beefing up my security posture by added very secure and randomly generated passwords to all systems that I have console access too. This in turn has created a new issue where I need to copy/paste that password whenever I sudo
.
Turns out there is a solution to this problem that has been around since at least 2013. I'm talking about the ability to use SSH keys to authenticate sudo
commands so you don't have to constantly unlock the secure password from the password vault and you don't need to submit to NOPASSWD:
in /etc/sudoers
.