#StackBounty: #ubuntu #ssh #devops #circleci Deploying with CircleCI – SSH into server requires password but I have SSH key associated

Bounty: 100

I am trying to SSH into the server as part of the deployment job in CircleCI

ssh -oStrictHostKeyChecking=no $DEV_DROPLET_USER@$DEV_DROPLET_IP

I have my SSH private key for the user on this server loaded into CircleCI but everytime I run the job, I get this output

Warning: Permanently added '$host' (ECDSA) to the list of known hosts.
<$user>@<$host>'s password:

How can I stop it prompting me for the password?

I have added the SSH key for this user to the SSH Agent on the server (these instructions)

Get this bounty!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.