Permission denied trying to access remote server

ssh
nodejs
circle.yml
#1

I have worked through getting a deploy script to work past the unidentified fingerprint. I have reached this next problem (below). Any suggestions?

deploy script:

.

2 Likes
#2

I have to ask, did you set a private SSH key in the CircleCI UI? Did you place the corresponding public key to where you’re SSHing?

1 Like
#4

No it’s not private. It’s the same key I use to login from my local machine.

#5

Yes but when SSH, there’s two parts to the key. There’s the private key and the public key. The private key should be on the system you’re SSHing from and the public key should be on the system you’re SSHing to.

#7

I understand that. I placed the public key within the authorized_keys dotfile on the remote DO droplet, that correlates with the private key I have on my local machine. This private key is what I added to my project under SSH PERMISSIONS section. Please advise it this was done incorrectly.

#8

Is the private key encrypted?

#9

No the private key isn’t encrypted.

#10

What is the value of $deploy_user

#11

The value is deploy.

#12

Should I level it static instead?

#13

I’m having the same issue, and I’ve documented the process of adding the SSH key into CircleCI. I expect we’re both doing the same thing wrong, so hopefully my question will help you too.

closed #14

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.