When I'm adding an SSH public key to Bitbucket Cloud, it was show an error
Invalid SSH Key
please help what to do?
Hi @Ashima Khanna ,
Welcome to the community!
This error means that the data copied into the form was not able to be parsed to extract something that "looks like an SSH key". In many cases, the cause of this error is that the data pasted into the key field was copied incorrectly. Sometimes, this is due to line breaks being copied. Many tools will wrap the display of an SSH key. Simply highlighting and copying the key like this may copy line breaks depending on which text viewer you are using.
Back in your terminal window, copy the contents of your public key file.For example, in Linux you can cat the contents.
$ cat ~/.ssh/id_rsa.pub
In Mac OS X, the following command copies the output to the clipboard:
$ pbcopy < ~/.ssh/id_rsa.pub
Back in your browser, enter a Label for your new key, for example, Default public key.
Thanks for quick reply!
It looks like you're new here. Sign in or register to get started.