SourceTree on Windows: How to connect to SSH?

前端 未结 4 947
一生所求
一生所求 2021-02-01 03:44

I have an SSH access to my web hosting, it works great with PuTTY (I just had to enter my domain, username and password), however it seems much more complicated with SourceTree.

4条回答
  •  一整个雨季
    2021-02-01 04:06

    I had some trouble getting SourceTree working with an existing git repo that resided on gitlab. I also had to figure out why it wasn't connecting as I was using puttygen to generate the keys.

    Make sure after you generate your keys to export it to the OpenSSH format

    You place this file in your c:\user\MYUSERNAME.ssh folder as the file:

    • id_rsa
    • id_rsa.pub

    the id_rsa is the private key file and .pub is the public key file that you paste into your other application, which in my case was gitlab.

提交回复
热议问题