Michael
Michael

Reputation: 737

Cannot push after changing from https to ssh

I had a repository, which was cloned using HTTPS, and I wanted to "convert" that to ssh, for not to write username and passwords each time I push.

So using info from this page, I somehow moved to ssh.

But after that git push stopped working, in the terminal, the cursor just blinks...
I tried moving backwards to https, but nothing changes.
Can anyone tell the reason why this happens?

Upvotes: 0

Views: 367

Answers (1)

VonC
VonC

Reputation: 1323803

You need to check if your SSH url works:

ssh -Tv [email protected]

(Assuming a GitHub remote here): if the authentication succeeds, then your local user does have the relevant ~/.ssh/id_rsa private key.

Upvotes: 1

Related Questions