Permission Denied (Pubkey) whilst deploying Terragraph

Good afternoon!

We’re currently attempting to deploy Terragraph on a node. We keep getting the following error when running the initial config file.

root@terragraph-01:~# root@terragraph-01:~# ./nms install -f config.yml
root@FQDN: Permission denied (publickey).

Here is our /etc/hosts localhost
PublicIP terragraph-01

I’ve blocked out our FQDN however it is pingable and confirmed to be the same box we’re running the script on. How can we get it to force it to use the same credentials that are already being used? We’re logged into root using a key on my Laptop.

Many thanks in advance for your help!

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
May 14, 2023

Hi there,

As you are running the the installer locally on the Droplet and it is trying to make a loopback SSH connection to the same Droplet locally, what you could do is to generate a new SSH key on the Droplet using the ssh-keygen command, and then add the public SSH key to the ~/.ssh/authorized_keys file:

cat ~/.ssh/ >> ~/.ssh/authorized_keys

That way, you will be able to SSH to the Droplet itself allowing the installer to make that loopback SSH connection.

Let me know how it goes!



Site Moderator
Site Moderator badge
May 14, 2023

Hello @1d6ce141ab5444dfb1ea2dd29cf4b1

You can ensure that the ssh public key is present in the ssh authorized_keys file on the node. This will resolve the ```` Permission denied (public key)` error.

If the issue persists, please consult the authentication log for more details by running:

  1. tail -f /var/log/auth.log

For more information on how to set up SSH keys on DigitalOcean, please refer to this documentation.

Hope that this helps!

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel