A
A
Alexander Sharomet2017-10-24 10:07:29
git
Alexander Sharomet, 2017-10-24 10:07:29

How can I push data to github server without using tortoiseGit?

Hello. I am using git. ssh
I have this problem:
When I type git push origin master in the console it says

Permission denied (public key).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

But when I run tortoiseGit, press push, enter the password window, I enter my password and everything is fine.
How can I upload to the server without using tortoiseGit?
That is, so that this password window pops up when I try to upload data from the git push origin master console.
Maybe you can immediately enter a password somewhere and not enter it every time?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lexnekr, 2017-10-24
@sharomet

In order not to enter a password, generate keys for exchanging repositories via ssh - https://help.github.com/articles/connecting-to-git... + https://git-scm.com/book/ru/v1/Git -%D0%BD%D0%B0-%D...
You can also change repositories via Https, but then you have to enter a password.
There is a feeling that you have https configured from the client, and from the console you are trying to send via ssh (but the key was not generated).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question