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

Can not clone repo via SSH because of SSH key password

Vladimír Čamaj March 13, 2023

I have an account which does not have any SSH key (as I see in personal settings) set. There are few repositories which I have access to. One of them I can clone via SSH but other one I can not. It always require ssh key password. 

In second repository I have a role admin. Dont understand how is it possbile if there is no key and how is it possible that I can clone other repositories without any passwords. 

Can somebody tell me what could be the problem? Thank you.

1 answer

1 accepted

0 votes
Answer accepted
Erez Maadani
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.
March 13, 2023

Hey @vladimir_camaj

Check your repo(s) access keys section, under Repository Settings -> Security -> Access Keys.

You might have ssh key installed which match the public keys in the Access keys.

As your computer can have multiple ssh keys, one might requires a passphrase which is why you see the request for ssh key password.  

Vladimír Čamaj March 13, 2023

There is no key. There is a button add key. 

Vladimír Čamaj March 13, 2023

But the same is in repository which I can clone. 

Vladimír Čamaj March 13, 2023

The error message says> 
The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated.
fatal: Could not read from remote repository.

What it means "make sure you are authenticated"? 

Erez Maadani
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.
March 13, 2023

It means that if the repo exists and you have access to see it, your authentication has probably failed.

regarding your original issue, run the command

git remote -v

in both repos and see if in both repos, the remote urls use the ssh prefix.

Vladimír Čamaj March 14, 2023

Its little weird. I need to clone via https but need to join repository with correct account. The problem was wrong account. 

 

Thank you.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events