Hello Wangwei and welcome to the Community!
Thanks for asking about adding SSH to Sourcetree. There is an article which will guide you through doing this. You may find this article at Generate and Load SSH Keys into SourceTree with PuTTY.
I hope this information proves helpful and you’re able to get Sourcetree configured.