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:

  1. i generated public , private key using puttygen
  2. added private key using pageant
  3. added ssh config file inside ~/.ssh
  4. 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

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -