using sudo with mercurial and ssh authentication
Posted
by Shawn
on Stack Overflow
See other posts from Stack Overflow
or by Shawn
Published on 2010-05-09T22:41:25Z
Indexed on
2010/05/09
22:48 UTC
Read the original article
Hit count: 210
How do i run
ssh-add key
sudo hg clone [email protected]/etc/etc
but use my ssh keys and not the superusers.
Hey everyone, when i use sudo with for example, sudo hg clone [email protected]/etc/etc after i have added a key to my user account it doesnt work. I remember this is because the sudo is ran as the superuser but that user cannot have keys added to it. I remember setting some directive (im using debian) that allowed me to run that command as sudo, but still have my ssh keys taken from my normal user account but i didnt make a note of it at the time. Thanks.
© Stack Overflow or respective owner