Command line public key issue in sourceTree (git)

I usually use git in linux and I am not familiar with sourceTree in windows (C # project), the interface is useful for the subsequent tree, but I want to use the command command.

I really don’t understand, I generated my ssh key with the sourceTree agent and uploaded using "Pageant", I added the public key to my bitbucket account.

And it works. I can clone / pull / click from sourceTree interface

fetch with sourceTree's interface

But using sourceTree command line mode does not work

command line doesn't works

+4
source share
3 answers

you need to generate the public key from the console.

like this

 ssh-keygen

, Bitbucket

0
  • SSH PuTTY (.ppk) SSH Client PuTTY / Plink
  • GIT_SSH plink.exe, C:\Program Files (x86)\Atlassian\SourceTree\tools\putty\plink.exe

, OpenSSH %HOMEPATH%\.ssh\id_rsa, SourceTree, .

, , :

  • SSH OpenSSH OpenSSH SSH-
  • SSH PuTTY PuTTY / Plink SSH
+4

None of the above was needed to make it work for me. The only necessary aspect to keep in mind is that by default, git (and possibly other applications) are expecting your ssh key in c:/users/<user>/.ssh. Remember the point! After I renamed my ssh folder to .ssh, everything started to work fine.

0
source

All Articles