Does not provide shell access

When i try this, ssh - T git@github.com
the terminal shows this, Hi Josejose12! You’ve succesfully autheticated, but GitHub does not provide shell access, what can i do?

HI @josejose12,

Thank you for being here! We only support git push over ssh, essentially setting up the remote to be an ssh remote and git using the ssh keys you have configured to push. There is no way to ssh directly. You can see this for yourself by running: $ ssh git@github.com

In my case, I have an ssh key associated with my account, so I see:

Hi andreagriffiths11! You’ve successfully authenticated, but GitHub does not provide shell access.

I hope this helps and have a great day.

6 Likes

@josejose12,

Try and redefine the ssh url for remote origin:

git remote set-url origin git@github.com:<url-repo>.git

And try again

$ ssh -T git@github.com

Warning: Permanently added the RSA host key for IP address '140.82.132.15' to the list of known hosts.
Hi NelsonStevenSM! You've successfully authenticated, but GitHub does not provide shell access

Ignore this message, now push your repository and it will no longer ask you to enter the Username and password.

I hope I’ve helped.

1 Like

this worked for me, thank you