I am trying to clone a repository, my OpenSSH are set up correctly and I can do everything fine in Git Bash.
If I put in the [e-mail protected] address in Sourcetree
The Checking Source loading icon just spins forever
And doesn ' t allow me to do anything.
Similarly, if I clone in Bash and then add the repo as a bookmark, fetching the master branch also never completes
And just shows the loading bar forever.
If you are using SSH and System git, try using the embedded version of Git.
Once source Tree recognizes your RSA key properly you should is able to switch back to System Git.
I just ran into this problem when setting up a new machine.
I is using system git and generated my RSA keys from the command line as well as a. PPK using Puttygen.
My keys were properly added to both Source Tree and BitBucket, also all necessary known_hosts were added in my. SSH Direct Ory.
Everything worked fine from the command line, but source Tree could not clone repos (stuck at checking Source forever) .
For whatever reason, the only-to acknowledge, the RSA key in Source Tree is to download
and use embedded Git (a authorization window finally popped up in the Source Tree UI).
Everything has worked fine since.
Commentadd your comment ...
This worked for me.
I selected system git right after install. But, switching back worked. Life saver!
I had this problem today, and spent almost all of the it trying-work out, what's the issue is.
To is clear this is only occurs, for me, when using the Sourcetree with BitBucket, over SSH and using Putty, not OpenSSH.
The problem appears to is that Putty have no known host for BitBucket.
Typically, Putty stores these in the registry. Despite this, Sourcetree does isn't prompt for you
To add the entry so it seems the that's a bug in Sourcetree.
To get this to work, you need to connect to BitBucket, using the same plink that's distributed with Sourcetree, on the CO Mmand line.
This would then correctly prompt your to save BitBucket as a known host.
Afterwards, Sourcetree would start working properly when you clone.
For me this involved running the following in a Windows command prompt:
CD "C:\Program Files (x86) \atlassian\sourcetree\tools\putty"
plink [email protected]
When you were prompted to save BitBucket as a known host,
Just type "Y" and then press ENTER.
c:\users\administrator>CD "C:\Program Files (x86) \atlassian\sourcetree\tools\putty"
C:\Program Files (x86) \atlassian\sourcetree\tools\putty>plink [email protected]
The server ' s host key is not a cached in the registry. You have no guarantee, the server is the computer your think it is.
The server ' s RSA2 key fingerprint Is:ssh-rsa 2048 11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff:00
If you trust this host, enter "Y" to add the key to PuTTY's cache and carry on connecting.
If you want to carry in connecting just once, without adding the key to the cache, enter "n".
If you don't trust this host, press Return to abandon the connection.
Store key in cache? (y/n) y
FATAL error:server unexpectedly closed network connection
C:\Program Files (x86) \atlassian\sourcetree\tools\putty>plink [email protected]
Using username "git".
Server refused to allocate Pty
Logged in as UserName.
You can use Git or HG-to-connect to BitBucket. Shell access is disabled.
C:\Program Files (x86) \atlassian\sourcetree\tools\putty>plink [email protected]
The server ' s host key is not a cached in the registry. You have no guarantee, the server is the computer your think it is.
The server ' s RSA2 key fingerprint Is:ssh-rsa 2048 11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff:00
If you trust this host, enter "Y" to add the key to PuTTY's cache and carry on connecting.
If you want to carry in connecting just once, without adding the key to the cache, enter "n".
If you don't trust this host, press Return to abandon the connection.
Store key in cache? (y/n) y
Using username "git".
Server refused to allocate Pty
Hi UserName! You've successfully authenticated, but GitHub does not provide shell access.
Sourcetree-checking the source ... When cloning a repository, "Checking Source" spins forever