Solved Connect to git
-
@Mikeeeeee said in Connect to git:
How do I set up the connection correctly?
Doing what is suggested in the error message
-
I doing this:
git remote add "Mihail_Sermiagko" "https://bitbucket.org/Mihail_Sermiagko/testmd5/src"
and
git push --set-upstream testMd5 master
But i get error:
The authenticity of host 'bitbucket.org (18.234.32.157)' can't be established. RSA key fingerprint is SHA256:zzXQOXSRBEiUtuE8AikJYKwbHaxvSc0ojez9YXaGp1A. Are you sure you want to continue connecting (yes/no/[fingerprint])? y Please type 'yes', 'no' or the fingerprint: yes Warning: Permanently added 'bitbucket.org,18.234.32.157' (RSA) to the list of known hosts. git@bitbucket.org: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Whot now me need doing?
How do I specify the account key? -
@Mikeeeeee Isn this your repository URL:
https://bitbucket.org/Mihail_Sermiagko/testmd5
?
Also, you probably need to set-up SSH public key authentication in your Bitbucket account. -
@Mikeeeeee said in Connect to git:
Please make sure you have the correct access rights
and the repository exists.How did you come up with the URL? Where did it say it is publicly available to you?
@jsulm
I showed earlier that URL gives a "permission denied" error for me. I do have a bitbucket account, and I do have SSH public key for BB for my account. -
@JonB I can access https://bitbucket.org/Mihail_Sermiagko/testmd5, but of course it asks for authentication. But I don't have a Bitbucket account to verify this is actually an existing project.
-
@jsulm
Hmm, isn't that strange!? How in the world can you be allowed to access that page if I am not, I don't get it!!?? I'd like to know the answer if you have any idea?Ah ha, I wonder if you do not! With no account it just asks you for authentication, and goes no further. I do have an account, and I have SSH enabled, so I do get past the initial challenge, and even with that I then get the failure. From which I conclude it is a private repo, which will require a particular authentication.
We can't let you see this page
To access this page, you may need to log in with another account. You can also return to the previous page or go back to your dashboard.
EDIT Further, I can access just https://bitbucket.org/Mihail_Sermiagko/. I can get as far as https://bitbucket.org/Mihail_Sermiagko/workspace/projects/. There is some
testMd5
there, it has aKey
ofTES
whatever that means, that takes me to https://bitbucket.org/Mihail_Sermiagko/workspace/projects/TES, but seems to be empty.Is the OP using some URL for a project which no longer exists? I asked him where he got the URL from, but he often does not reply to suggestions. Over & out.
-
@JonB I don't have any idea. And as I wrote: I can't verify whether this URL is actually pointing to an existing project as I'm asked for log-in (but I don't have an account).
-
It is url this page https://bitbucket.org/Mihail_Sermiagko/testmd5/src
Do I need to show any more data?
-
@Mikeeeeee So, do the step 2.
-
This post is deleted! -
@Mikeeeeee Please do step 2 - there is the correct URL...
-
I do 2 step and after in Qt I try push on git, but I get this errors:
git@bitbucket.org: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Команда «E:\Programs\Git\cmd\git.exe push --set-upstream origin master» завершилась с кодом 128.
-
Do I need to specify a password?
-
@Mikeeeeee As I mentioned above you probably need to set-up SSH public key or use password. Without authentication everyone would be able to push to your project :-) Please take time to read Bitbucket documentation.
-
I can't find a password in the documentation. Do you know how to enter password?
-
@Mikeeeeee said in Connect to git:
I can't find a password in the documentation
It's a secret but I will tell you: 'kd!hoiwzp934hzrfowebfz8?o43b'
-
need to do
ssh-keygen
and key from id_rsa.pub copy to bitbucket
-
@Mikeeeeee
Hmm, I wonder then why this does not work for me, I am intrigued.... -
@JonB Isn't this his private repo?
-
@Bonnie
OMG! Are you saying @Mikeeeeee ==Mihail_Sermiagko
???!!!!Why in the world did he not bother to say so, when I was trying to help about "permission denied" and he was asking the question? I thought it was an attempt to access someone else's repo (to fetch some code source)........ If I had understood that I could have said about
ssh-keygen
from the start. Sigh!