This question is answered a number of times in the net, but none of those answer resulted useful in my case.
Accessing a remote machine using private key, I usually require root permissions, which imply writing a long password and is annoying.
For the purpose of having
sudo su, I tried following steps:
- Ensure the line
<user> ALL=(ALL) NOPASSWD: ALLis in /etc/sudoers
- Ensure the user is in
$groups <user>-> sudo
sudo su will just prompt me for my own password:
[sudo] password for <user>:
How to have password-less