First i create a ssh-key with this tutorial for bitbucket:
https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html#SetupanSSHkey-ssh1
Everything works fine. When i restart sourcetree, a window opend and ask me for the ssh-key password. After entering i can push and pull.
For another git-Server i need a second key. For this i used this tutorial:
https://confluence.atlassian.com/bitbucket/set-up-additional-ssh-keys-271943168.html#SetupadditionalSSHkeys-ssh1
After adding the key, i would asked for the password for my this new key.
In this working-session everything works fine.
After closing and restart sourcetree, the password-prompt-window does not opened, so i could not enter the passwords and after this i could not push and pull. The git-servers told me, Permission denied (publickey). fatal: Could not read from remote repository. Thats right, because both accounts needs my passwords.
Only when i add both keys again via bash, then i would asked for both passwords and i can work again during the next restart.
I know theres a option to add keys to sourcetree (Tools > Add SShkey). I see that sourcetree add the keys to a semicolon seperated list (Tools > Options > SSH Keys), and the list would be longer and longer with the same keys, but it doesnt matter, they dont ask me again for the passwords.
It would be correct if I have in the semicolon seperated list only two entries and i would asked for both passwords again when i starting Sourcetree.
Can you help me?