youngmon/atlassian-qna huggingface dataset:
Showing Invalid SSH Key
Asked by Ashima Khanna:

When I'm adding an SSH public key to Bitbucket Cloud, it was show an error

Invalid SSH Key

please help what to do?


Answers:
author: Soumyadeep Mandal
body: Hi [@Ashima Khanna](/t5/user/viewprofilepage/user-id/3876525) ,

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.

### ****Windows**** {#toc-hId-1174982779}

1. From your avatar in the bottom left, click ****Bitbucket settings**** .  
   Bitbucket displays the ****Account settings**** page.
2. Click ****SSH keys**** .  
   The****SSH Keys**** page displays. It shows a list of any existing keys. Then, below that, a dialog for labeling and entering a new key.
3. Switch to your local desktop and start the PuTTYgen program.
4. Press ****Load****.
5. Navigate to and open your default private key.
6. Enter your passphrase when prompted and press OK.  
   The system displays your public key.![putty_key](https://community.atlassian.com/t5/image/serverpage/image-id/111060i6FCD5319E2CDB669/image-size/large?v=v2&px=999 "putty_key")
7. Select and copy the contents of the ****Public key for pasting into OpenSSH authorized_keys file**** field.
8. Back in your browser, enter a ****Label**** for your new key, for example, Default public key.
9. Paste the copied public key into the ****SSH Key**** field:![add_ssh_key](https://community.atlassian.com/t5/image/serverpage/image-id/111061i0B38E1C0E9AC9C09/image-size/large?v=v2&px=999 "add_ssh_key")
10. Press ****Add key**** .  
    The system adds the key and it appears in the ****SSH Keys**** listing.
11. Close PuTTYgen.

### ****OSX/Linux**** {#toc-hId--632471684}

1. From Bitbucket Cloud, choose **avatar** ****\> Bitbucket settings**** from the application menu.   
   The system displays the ****Account settings**** page.
2. Click ****SSH keys**** .  
   The****SSH Keys**** page displays. If you have any existing keys, those appear on this page.

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

![](https://confluence.atlassian.com/bitbucket/files/304578655/755335794/2/1502737357377/add_ssh_key.png)

Back in your browser, enter a ****Label**** for your new key, for example, Default public key.

1. Paste the copied public key into the SSH****Key**** field:
2. Press ****Add key**** .  
   The system adds the key to your account. Bitbucket sends you an email to confirm addition of the key.

comments: author: Ashima Khanna
body: Thanks for quick reply!


Tags: bitbucket-cloud

cloud

git

ssh-key
Authentication problem
Asked by Paritosh Sen:

I was having problem with authentication. I'm receiving error "Invalid Username or password" when authenticating to Bitbucket Cloud via git.


Answers:
author: Soumyadeep Mandal
body: Hi [@Paritosh Sen](/t5/user/viewprofilepage/user-id/3876784) ,

Welcome to the community!

One of the possible causes for this issue is that there are stored credentials in your git client or credential manager which interferes while authenticating with Bitbucket Cloud. It could also mean that the credential manager is not providing the correct credentials for authentication.

To solve this, you will have to clear any stored credentials in your machine and reset your Atlassian Account password. Please refer to the steps below.   

**Steps**

1. Firstly reset your password at "<https://id.atlassian.com>"
2. Ensure you are able to login to Bitbucket Cloud - "<https://bitbucket.org>"
3. Clear stored credentials on your machine
   1. Windows: Navigate to Credential Manager and clear stored credentials related to Bitbucket Cloud.
   2. Mac OS X: Navigate to Keychain Access and clear stored credentials related to Bitbucket Cloud
4. Once this is done, try to login to perform a git operation authenticating to Bitbucket Cloud once again.

**Additional Steps if you are using Sourcetree and experiencing this issue.**

1. Open Source Tree
2. On Windows  
   1. On the toolbar click "Tools" \>\> click "Options"
   2. On the "Options" window click the "Authentication" tab
   3. Identify stored credentials to Bitbucket Cloud and remove them.
3. On Mac
   1. Click Sourcetree \> Preferences \>\> Accounts
      1. Shortcut = Command + Comma  
   2. On the Accounts tab, remove stored credentials.
4. Try authenticating via Sourcetree once again.

comments: author: Paritosh Sen
body: Thank you for your solution.


author: himanshu_jaiswal
body: Hi [@Soumyadeep Mandal](/t5/user/viewprofilepage/user-id/3861721)

I am facing the same issue. I cleared stored creds. Tried again after resetting. For some time it works then it shows again the authentication message.


author: Soumyadeep Mandal
body: Hi [@himanshu_jaiswal](/t5/user/viewprofilepage/user-id/3762001) ,

You can do some troubleshoot like clear browsing cache from your browser, Try in incognito/private brosing, \& changing the current browser!


Tags: bitbucket-cloud

cloud

git
Bitbucket checkmarx integration
Asked by krkredde:

we are also looking similar requirement. Can someone please help me to find a way to integrate webhook.

<https://community.atlassian.com/t5/Bitbucket-questions/Is-there-any-way-connect-bitbucket-to-Checkmarx-CxSast/qaq-p/1116097>

Thanks in advance.


Answers:
author: Vara Prasad Beerakam
body: We are also looking for similar integration. Just like how sonarqube Quality gates are displayed in Pull Request, we would like to display checkmarx details. Please let us know if such integration possible


Tags: bitbucket-server

server
How to switch to non-root user at runtime
Asked by sofo506:

Hello,

Here is a snippte of yml file and is it possible to switch non-root user at runtime ? Below whoami is returning root. Need to run npm run e2etest as a non-root user.

Thank you

![bitbucket-pipelines.yml ? compliagov 2020-09-18 16-30-57.png](https://community.atlassian.com/t5/image/serverpage/image-id/111011i997ADDBA05B1C63D/image-size/large?v=v2&px=999 "bitbucket-pipelines.yml ? compliagov 2020-09-18 16-30-57.png")


Answers:
author: DPKJ
body: [@sofo506](/t5/user/viewprofilepage/user-id/3145121) Nice question,

Here are some pointers to help you,

* The individual commands that you write in \`scripts\` array executed independently.
* This means, even if you switch user in one command (script) rest will execute in same old shell as previous switch won't have any effect on next command
* To get rid of this situation you can merge two step, eg,
  *

    ```
    - su - taiko -C "touch me" && whoami && ... && ...
    ```

* Or another way is, writing steps in using this syntax
*

      - su -s /bin/bash -c "whoami" taiko

Hope this helps.


Tags: bitbucket-cloud

cloud
Has anyone set up webhooks to a Jenkins that is not publicly accessible? Are there better solutions
Asked by rakeshkasinathan:

I have Jenkins running in private subnet on AWS, which has no exposure to the public internet. It is able to pull from Bitbucket Cloud


Answers:
author: DPKJ
body: [@rakeshkasinathan](/t5/user/viewprofilepage/user-id/4083954) Welcome to the community,

I don't this is possible, the whole premise of web hook depend upon accessibility of Jenkins from Bitbucket Cloud. If your Jenkins is not visible to Bitbucket your web hooks will never work.

comments: author: rakeshkasinathan
body: [@DPKJ](/t5/user/viewprofilepage/user-id/690016) Is there any other possibilities to communicate from bitbucket to Jenkins behind a firewall.


author: DPKJ
body: I don't think so, we had similar situation as we were running Jenkins on local subnet on AWS. But due to this very reason had to open public access from Bitbucket (we only allowed access from Bitbucket IP address due to security teams restrictions though).


Tags: bitbucket-cloud

cloud
Admin cannot clone all repos in workspace
Asked by md2perpe:

I made a colleague admin of a workspace, yet he cannot clone all repositories in that workspace. He could clone one of the repositories, but not another.

He has added an SSH key in the account and to \~/.ssh/config.

Anyone has an idea of what might be the reason and how to solve it?


Answers:
author: Theodora Boudale
body: Hello and welcome to the community!

Is your colleague able to access from browser the repo he cannot clone?

One possibility is that the User group that your colleague has been added to does not have access to the repo he cannot clone. Sometimes users accidentally remove certain user groups, even admin groups, from the repo's Settings.

To double check, you can go to **Repository Settings** \> **User and group access** \> make sure that the User group you added your colleague to is listed in the **Groups** section.

If he can view the repo from browser, then it doesn't sound like this is a permissions issue.

In this case, it would be helpful to see the output of the clone command as this could give us an indication of why this issue occurs. Would you be able to share this with us?

Kind regards,  
Theodora

comments: author: Per Persson
body: He sent me a screenshot listing all repositories, including the one that he cannot clone.

I see no difference on the \*\*User and group access\*\* pages for that repository and the one he could clone.

Here's the output from when he was trying to clone the repository:

```
git clone git@bitbucket.org:ingridcloud/geometry.git
Cloning into 'geometry'...
Unauthorized
fatal: Could not read from remote repository. Please make sure you have the correct access rights
and the repository exists.
```


author: Theodora Boudale
body: Hello,

One possible reason I can think of is that an incorrect SSH key may be used to clone the repo.

Assuming that the name of the private key he generated for his Bitbucket account is named id_rsa, I would suggest asking him to clone with the following command and see if it works:

```
GIT_SSH_COMMAND="ssh -i ~/.ssh/id_rsa" git clone git@bitbucket.org:ingridcloud/geometry.git
```

If this also fails, then we would need to see the output of:

```
ls -lah ~/.ssh
```

to see if there are more than one SSH keys there, the output of

```
GIT_SSH_COMMAND="ssh -Tvvv -i ~/.ssh/id_rsa" git clone git@bitbucket.org:ingridcloud/geometry.git
```

```
GIT_SSH_COMMAND="ssh -Tvvv" git clone git@bitbucket.org:ingridcloud/geometry.git
```

so that we have more verbose output on the clone commands (both with and without specifying the SSH key to be used)

and also the contents of his \~/.ssh/config file, just the entries that are referring to bitbucket.org

Kind regards,  
Theodora


author: Per Persson
body: We found the reason. He had added his SSH key to one repository instead of to his account. Therefore he could clone that repository but not another.


author: Stephanie Poulin
body: I had the same issues and adding :

```
GIT_SSH_COMMAND="ssh -i ~/.ssh/{my ssh key name}"
```

did fix it thank you so much you saved so much time !!!!


Tags: bitbucket-cloud

cloud
?? ???????? ???????? ??????
Asked by Sabina S:

?????? ????!

??????????, ?? ????? ??????? ????? ????????? ?????? ???????? "?????????????????? ??? ??????? ???????? ??????? ????? ??????? ??????????? ?????". ???? ? ???, ??? ?? ???????? ?????? ??????????? ?????, ????? ????????? ? ??????-????????. ??? ????? ?????? ????????????? ????, ?? ?? ????????? ?? ????, ?? ??????????.


Answers:
author: Kseniia Trushnikova
body: ?????? ????, [@Sabina S](/t5/user/viewprofilepage/user-id/4425780)!

?????????? ??????: <https://community.atlassian.com/t5/Jira-Service-Management/Serivce-Desk-Email-requests-Configured-request-type-has-too-many/qaq-p/1526852> ????????, ??????, ?????????????? ?? ???? ??????, ??? ???????.


Tags: jira-service-management

server
Is there a listing of all the css classes that are used when exporting to PDF?
Asked by Barry Steinberg:

Hi

I have been successful in stopping the ".confluence-information-macro-information " class from being included in a PDF export.

++**Is there a listing of all the css classes that are used when exporting to PDF?**++

I tried looking at the CSS of the published page BUT the classes seem quite different to the one used in the PDF export.

This would be useful to hide or format any macro or html element for pdf export.

For example:

In the published page the div has the class

class="ak-editor-panel css-xyzabc"

data-panel-type attribute ="info"

This is different to .confluence-information-macro-information

fyi the issue that gave me some clues: [\[CONFSERVER-31307\] Word and PDF Export: Info, Note, Warning and Tip macros are not included in the exported document - Create and track feature requests for Atlassian products.](https://jira.atlassian.com/browse/CONFSERVER-31307)

See the possible workaround section.

Thank Barry


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Barry Steinberg](/t5/user/viewprofilepage/user-id/5119281) ,

welcome to the Atlassian community!

That link is for server instances. For a cloud instance that request is not in place yet <https://jira.atlassian.com/browse/CONFCLOUD-31307>

Hope this helps,

Fabio

comments: author: Barry Steinberg
body: Thanks [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528)

CONFCLOUD-31307 was to resolve some other issue, it was about missing icons in the pdf.

I am not reporting a problem. I am asking for help. I want to know what CSS selectors to use for the various elements. Is there a naming convention or any documentation?

Thanks Barry


Tags: cloud

confluence-cloud

pdf-export
After migration to Confluence Cloud, getting error message on Creating a page
Asked by Aaron Baff:

I'm going to Create a page on Confluence Cloud for the first time since we migrated a while ago. Whether it's my Personal Space, or in another section, when I hit Create and go to a blank page to start editing, I get the same error message.

*** ** * ** ***

**Can't save changes**

Copy your work, refresh the page, and we'll try to reconnect.

*** ** * ** ***

I've asked my Admin, there's no apparent permissions issues at all. I get the same error when I go to Edit an existing page.

I've disabled uBlock Origin and Privacy Badger on the company sub-domain for the cloud.

I'm running current Firefox on KDE Neon (basically Kubuntu), even when I try and using a Private window with a fresh login, the same issue is occuring.


Answers:
author: David at David Simpson Apps
body: I'd suggest testing this out on a different computer. If you have a bunch of browser extensions, that may be a problem. Privacy Badger can sometimes be a bit aggressive.

Failing that, try checking the browser console for any errors that are being produced.

comments: author: Aaron Baff
body: So I did try on another system the IT guy had spare, for a moment, using Chrome and it worked there.

I did turn _off_ both uBlock Origin and Privacy Badger, so they were disabled for the site. Unless Privacy Badger might only look at the domain of requests, rather than of the 'host page' that I'm on?


Tags: cloud

confluence-cloud
I want to hide a page that I do not own.
Asked by Giovana Santoro:

A page was created by a member that no longer works in my team, it was last modified in August 2021. I need to hide it or exclude it, since my team is creating a new one for this subject. The page is editing restricted. What can I do?


Answers:
author: David at David Simpson Apps
body: Get someone who has access, like an admin or space admin, to archive the page.

comments: author: Giovana Santoro
body: I have access to read it, but as I can see in the page history, he was the only one who could edit it


Tags: cloud

confluence-cloud
Knowledge Base Articles - What Happens if Someone Clicks "Thumbs Down, Not Helpful"
Asked by Brandy Bednorz:

Hello!

I recognize that this is a simple question, but I didn't want to try it for myself in case it was something I could not undo.

On a Knowledge Base article, there is the question at the bottom that says, "Did this article help?" and the answers are:

Thumbs Up icon - Yes

Thumbs Down icon - No

Most of the documentation on reporting I have seen talks about Requests Deflected, which is based on the number of times people have said, "Yes, the article is helpful". But what happens if someone clicks the thumbs down icon and says, "No, this was not helpful"? Does that get recorded somewhere and if so, where?

Also, if they do click the "no" button, do they get asked for feedback? Are they able to undo the "no" at some point or is the "no" recorded forever?

Any information is appreciated. Thank you for your time!


Answers:
author: Brant Schroeder
body: [@Brandy Bednorz](/t5/user/viewprofilepage/user-id/4911833) Confluence uses this feedback yes and no to help identify useful articles based on the keywords on the Confluence page. If someone says it is not helpful it does not ask for any feedback. I do not know of any report that shows the ones marked no. **Requests deflected in the portal** . These are articles that customers gave a thumbs up in the portal.

more info:

<https://confluence.atlassian.com/servicedeskcloud/blog/2017/09/knowledge-base-reports-revamped>

comments: author: Brandy Bednorz
body: Thank you for the information!


Tags: cloud

confluence-cloud

knowledge-base
Alerts for Space permissions
Asked by Vamsi Kandala:

Hi,

Is there any marketplace plugin where in we can define the space permission policy and receive alerts via email or Slack notifications whenever someone changes the permissions for any of the spaces?

Thanks,  
Vamsi


Answers:
author: Ste Wright
body: Hi [@Vamsi Kandala](/t5/user/viewprofilepage/user-id/4392782)

Not that I know of - but you might be able to use the Audit Log, and do a regular check: <https://confluence.atlassian.com/conf719/auditing-in-confluence-1157467616.html>

There are Apps on the Marketplace which allow you to central Space Permissions, to make it easier to review them collectively - such as [Space Admin for Confluence](https://marketplace.atlassian.com/apps/1214087/space-admin-for-confluence?hosting=datacenter&tab=overview) - but I'm not personally aware of an App which provides notifications!

Ste

comments: author: Vamsi Kandala
body: Hi [@Ste Wright](/t5/user/viewprofilepage/user-id/1166470)

Thank you for the response.

Yes, I have already considered the 'Space Admin for Confluence' but it does not serve my requirements.

Thanks again,  
Vamsi


author: Fadoua
body: Not that I know of. Not sure there is a way to get notified. If it is a problem then remove the space administration from anyone. Give them the ability to perform some actions but not change permissions [@Vamsi Kandala](/t5/user/viewprofilepage/user-id/4392782)

Best,

Fadoua

comments: author: Vamsi Kandala
body: Hi [@Fadoua](/t5/user/viewprofilepage/user-id/655791)

Thank you for your response.

We are serving many customers from different companies and projects. So we provided space admin permissions to selected few from each of the companies/ projects. That way, the respective space admins can take care of the tasks like adding/ removing their members and/ or adding/ removing permissions instead of contacting the Confluence administrators every time such need arises.

Still, we want to make sure that the space admins are careful about who they give permissions to and what kind of permissions. We can check the audit log periodically like [@Ste Wright](/t5/user/viewprofilepage/user-id/1166470) mentioned above but this is a manual task and takes lot of time to go through the logs.

Thanks again,  
Vamsi


author: Fadoua
body: Oh I see. Did you try by any chance ScriptRunner for Confluence ?


author: Vamsi Kandala
body: Hi [@Fadoua](/t5/user/viewprofilepage/user-id/655791)

Yes. Right now, I am using ScriptRunner Listeners and getting email notifications whenever any space admin removes any permission for any of the users.

I am trying to setup the Listener to alert whenever the space admin adds the permissions pertaining to 'Delete' like page deletion, blog deletion, attachment deletion and so on.

Will update if I find more.

Thanks again,  
Vamsi


Tags: confluence-server

server
Can we have similar plugins with different vendors installed in confluence
Asked by aravind1516:

Hello, I just wanted to know if we can install a similar plugin which does the same work. For example can we have gliffy and drawio installed in confluence. Will there be any problems with this. If not can we go ahead and install both the plugins. Kindly let me if any body knows about it.


Answers:
author: Carlotta Kuhn
body: Hey [@aravind1516](/t5/user/viewprofilepage/user-id/4903702) , like the others have said it shouldn't be an issue for those 2 plugins. [draw.io](http://draw.io/) saves its diagrams as attachments to the page so as long as the attachments aren't affected, then it will work just fine!


author: Nic Brough -Adaptavist-
body: I don't need to repeat the other answers, but there can be a problem technically with plugins "clashing".

If an app provides classes or functions with the same name as another app, or tries to inject UI changes into the same place as another, you can get problems.

However, it is unlikely to happen, and the two times I've seen it, the vendors of the apps spoke to each other about which one should change, one giving me the new build the same day I reported it!


author: Samie Kaufman - Your Gal at Gliffy
body: Hi [@aravind1516](/t5/user/viewprofilepage/user-id/4903702) , you can absolutely install similar plugins --- it shouldn't be an issue to have Draw.io and Gliffy in the same instance. :)


author: Adam Rypel _MoroSystems_
body: Hi [@aravind1516](/t5/user/viewprofilepage/user-id/4903702) ,

Sure, you can do that. But I would think twice if you really want to do that - why not have only one when they do the same? That might cause additional work for you in the future, if you decide to merge them to one, or overall managing them.

But depends on your use case of course.


Tags: confluence-server

server
How do I audit third party plugin usage?
Asked by Gregory Muir:

I'm not seeing any native way to do this and am wondering if I might need to get a plugin to monitor my plugins!

We are paying for several plugins and it's hard to see if the usage volume is justifying the expenditure. We were wanting to see how many pages are using it and a history of usage. There's a macro usage view built in that can tell me xyz macro was used a hundred times but it doesn't tell me if that was all last week or five years ago.

Thanks!


Answers:
author: Nic Brough -Adaptavist-
body: There is no way to do this.

Apps can modify or add new functions to Confluence in all sorts of ways, and there's no generic way to work out how they are being used. Some provide macros, some add functions, some change searching, some change users, some do admin, and so-on.

Some apps do some self-tracking, which you may be able to hook into, but there's no way to write something that can tell you "where an app has been used".

Also, for macros, while we can get "where it has been used" and count it up, that "used" means "it exists on a page". Macros (and some apps) run when someone reads a page. A macro might have been put on a page 5 years ago, but if people are still reading it today, then does the macro doing its job when it runs today count as used?

You have to look at each app, evaluate what it does, and then work out how to detect that.


Tags: cloud

confluence-cloud