Я создал ssh ключ, подключил его к github, но при git push все равно требует указывать логин и пароль, хотя при тестировании ssh:
ssh -T [email protected]
получаю надпись такого типа:
Hi username! You've successfully authenticated, but GitHub does not provide shell access.
Что значит, что связь установлена и должно быть все нормально. Но логин и пароль при git push все равно просит.
OC: Win 8.1
Проверяем: git remote -v
origin [email protected]:name/repo.git (fetch)
origin [email protected]:name/repo.git (push)
Пытаемся: git push origin master и git push origin и даже git push
$ git push origin master
ERROR: Permission to [email protected]:name/repo.git denied to namelocal.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
git remote show origin
* remote origin
Fetch URL: [email protected]:name/repo.git
Push URL: [email protected]:name/repo.git
HEAD branch: master
Remote branch:
master tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (up to date)
git remote show origin
(если вы меняли имя remote-а с дефолтногоorigin
на что-то другое, то подставьте это имя вместоorigin
).