Projects > SSH Permissions > Add SSH key not working

ssh
deployment

#1

No matter what you enter in the hostname or Private key, it says “Failed”.
Checking in Chrome Console shows following error:
rollbar-4fcef5ccc29985d4878f2e7c5676180b.min.js:2 POST https://circleci.com/api/v1.1/project/bitbucket/{org-name}/web/ssh-key 400 (Bad Request)


#2

Hi, happyhardik. It happened to me as well, apparently because if you generate your SSH keypair with the

ssh-keygen -o ...

command the output format is different, and is not currently supported by circleci. Instead, use ssh-keygen without the -o flag, or try specifying it explicitly with -m 'PEM' (didn’t test the last one though).

@circleci please document this


#3