In my ternimal when I run
git clone -q git@codebasehq.com:zzzz/yyyy/plat.git
I am able to clone the project but if I run
sudo git clone -q git@codebasehq.com:zzzz/yyyy/plat.git
and give the correct password I get
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
any idea why is this ?
Your root user just don’t have the right public key in
/root/.ssh.Your user surely has one in
~/.ssh, but root does not.