Search code examples
gitsshzsh

Still have to login after testing SSH connection


I was testing my SSH connection. After attempting to ssh to github: $ ssh -T [email protected] I got the following message: Hi Parsa237! You've successfully authenticated, but GitHub does not provide shell access.

I thought that it means I won't have to provide my username and password everytime I do a command like git pull. Yet when I did git pull I still had to give my username and password.

Also my SSH key on github was never used:

enter image description here

How do I solve this problem?

Thanks in advance!


Solution

  • Try:

    git remote -v
    

    If it's set to https change it to ssh like so:

    git remote set-url origin [email protected]:username/repository.git