I want to execute a command which requires root privileges so I use sudo.
sudo puppet apply /etc/puppet/manifests/site.pp
This command involves cloning a private github repo with ssh. The only way this works is if I add my ssh to the root user.
I don't want to add my ssh to root user. How can I use
sudo but still use the ssh key for the ubuntu user?