Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Invalid Deployment Key

arnoldbird April 10, 2013

When I try to add a deployment key, I get an "Invalid deployment key" error.

I'm locating the key on my host with this command: ssh-keyscan -t rsa bitbucket.org

I then paste the resulting key into Bitbucket's Add Key form. I've tried it both with and without the "bitbucket.org ssh-rsa" part of the output. Either way I get "Invalid deployment key".

2 answers

1 accepted

0 votes
Answer accepted
m
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 10, 2013

Hi Ryan,

You don't say which OS you are using. ssh-keyscan is not something we recommend using. To get the key, you can just cat the public key contents and copy and paste:

cat ~/.ssh/id_rsa.pub

On Mac:

pbcopy < ~/.ssh/id_rsa.pub 
 

arnoldbird April 15, 2013

Thanks. The cat command provided a key that worked. I'm on Ubuntu.

0 votes
arnoldbird April 15, 2013

Thanks. The cat command provided a key that worked. I'm on Ubuntu.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events