I’m using simple command to generate SSH key ssh-keygen -t rsa -C "circleci"
. But I can’t add this key to “SSH Permissions”.
I’ve checked console and the response is:
Request URL: https://circleci.com/api/v1.1/project/bitbucket/outing-travel/admin-web/ssh-key
Request Method: POST
Status Code: 400 Bad Request
{"message":"it looks like private key is invalid key. Double check"}
I’ve regenerated it but still doesn’t work. Can anybody help me.
Passphrase is empty. I’ve tried even with ssh-keygen -b 2048 -t rsa -q -N ""
and it doesn’t work
PS. I found few similar topics, but hey’re outdated
halfer
April 23, 2018, 11:26am
2
Can you generate a throwaway key and show it to us? Maybe there is something obviously wrong with it, if we can see it.
Edit: are you using the API or the web app here?
1 Like
I’m using web app.
This is my sample key:
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAyUEVdkyoBLY8ILKGiP5p6h+Q6RFgwHZduOSApToF9ZnMVkQ7
d2vYBEAbkvDqSaX80XVqrEO+KAKTYFGubLcd5zuzjU9/iLJ/TrPXccEEzlUwSKEW
u8Xb4dcasvJS1YVL29FcCSN7l7JZO0hYgW5GbqXZuXqLBKJNvApiUZLnnqGJ7g0U
iBeFmsvmZ8eyKrckQh1ZCtGjSTfbIbkncCQdp9nPT/6wxmf6vU3aUvUJA9QYnT7I
w3nTfpWRej3lnRWixLidOk/ZBmkR6GTM9XMA+9NyOOjSln4zGqCTVk4YJUcXnszc
fles/tPv4dpMRiONLhC5CXhb1/Z6C5WkfR7HOwIDAQABAoIBAGLFUmcwz/UgCvpx
I53wXsLMoy3/nWBXtz+axZhRlcMnrCVab2T4xJexbtb67cEfeajC24uX46d3PCU1
cUlhxYdKwaBEt+66y8gwczgc5uLs5DmA9ctKG9QG4c+ZJhYsyUIkyeqiQ3H70ddK
dkVvfZmoQ+bHwZqQnV4AKqimVI6BESx5Y7Ck4ETrKdfCeWP/Q024DeapcixZAqSy
br358ulJSSHQHDqVKyhkZMLdPzzNKW9XTLXGWMrQLiN6H+alA6NEu/g4j1e64Myo
uLUm28fW5hYLxSQW4+x9T1szZSXZMWgrhm71VUBOQQd4G+ZLajzQv42ddGo6ej7h
AeMbPYECgYEA/XaUWAGZ/zipwZ4Zv77Ujp2MivHbBubBeZVrHfv6DA1N75Deid1V
W5g2yqyjZhSpWMMBmQ0g3JcLu92iV1byRmrzd+BQn2PXkJt80G3d8xtJ8GLCY49O
iq4WWzRsmBTlE3HiS9CfPiogC2AOlLxC4bawBTJhIpUJ/jNlhMhtYXECgYEAy0S8
Moc/+iC2k68gAlodbLFegYIgJru1I7UUShRMUXFQ7L5BkH3mGZOx395V8xVFwtdW
BMml7O4nGc8ZSMzE0arKuTG4GukBcG46LaOR/Y4fQJhnWwD6TJyKQJjNJ1tO42eN
Y8z8b0ueApRAiATWQUG9oZxX/tflqrq2iGqRXWsCgYAh7+mm6vf6o1SfdxLNiLif
K9swk3eXMfh/1hDUn/N3/6QKyqPxY7BVJklX08vBFE0kdF/XZVmcD6FjkyZ0eVDR
OurEh0VkQhMP6rHImp1YOrQouqB6giqrCOo3ZgqQRmPxuZLqQdHAmhVWUJNDOP3f
iP2ChJ9a6QfAgJM8NzXmEQKBgQCYOcmXLaLD92vD/grCuCoBFHPqGUFqwHhPXXTs
ZXciJvKr2W/Qffisfude+Gr1uKCd4hYRT9JrNY8izO3qjy92talMN+fgf08MnAAF
3dGfSagt//SnOnw4k6MV7Vj2eHMD6rEAZKtHziFvXQdW1gh+pnUVaribqaPd0CaS
0vw6MQKBgQCsVlFZiP5DucxYIF9IGVbZHHBUbbTqYQl4yBfupBlzqiDJnq83a2tl
A1U4QrdUAoNEHyMTGO9MS4DCCO+7y/oUbwRy1wN/dUCStX4wre3VY2RH2bKQdxdj
svS4jtck3uKMYuyc6Dm1D7O8HlsWtBkqj+SH/14xLbs6PMbAjT7KPA==
-----END RSA PRIVATE KEY-----
halfer
April 23, 2018, 12:01pm
4
Worked fine for me, the fingerprint was 5a:76:b8:e0:21:fd:7b:44:cc:9b:5e:51:5f:3d:da:08
. You just need to remove the spurious newline from the middle
Indeed! I’m copying from Atom’s terminal, which adds extra new line in the middle. Thanks anyway, we can close this discussion.
1 Like
system
Closed
July 22, 2018, 12:02pm
6
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.