M
M
MyQuestion2021-06-26 21:36:17
git
MyQuestion, 2021-06-26 21:36:17

Github: Can't login via console. Reports that the check passed, but access is denied, why?

Good afternoon!

I have always used desktop software to work with the git repository, now I need to work through the console. Once upon a time, I created an ssh key with a password, worked a little in the console and closed ...
Now I'm trying to log in using the command ssh -T [email protected], in response I get an error message:

Error :


PTY allocation request failed on channel 0 You've successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.


What could be the reason?
At first I thought that the password might not be correct, I tried another one, the result was radically different. The terminal just ignored and didn't return any error, unlike the password I remember.
I tried to change the directory and go to the folder with the .git repository, nothing either.

Any git status and other commands inverted to work with the repository give me an error:
fatal: this operation must be run in a work tree

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2021-06-26
@MyQuestion

No ssh commands work here, it's the wrong protocol. The git commands other than git init must be called in the directory where the git repository is initiated (where there is a hidden .git directory)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question