git - SSH push to Bitbucket using generated keys on Windows 7 -
i follow documentation on bitbucket site , push existing project remote repository ssh. perfomed next steps in cmd:
- i generated public , private key using puttygen
- added private key using pageant
- added ssh config file inside ~/.ssh
- added public key bitbucket
when try execute:
git push -u origin --all
i stacktrace:
enter passphrase key 'k:\path\private_work_key.ppk': enter passphrase key 'k:\path\private_work_key.ppk': enter passphrase key 'k:\path\private_work_key.ppk': permission denied (publickey). fatal: not read remote repository. please make sure have correct access rights , repository exists.
i added public key ~/.ssh/authorized_keys , problem remains.
please, explain did wrong?
the following scenario worked me,
first add key ssh agent,
ssh-add path/to/your/privatekey
and then, start ssh-agent
ssh-agent
now try pushing project repository.
Comments
Post a Comment