1
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?
This doesn't work for me. – jamjam – 2013-02-23T15:49:35.913
@jamjam Try
sudo -E
and also try some of the other solutions on the linked answer. – terdon – 2013-02-23T15:56:06.150