github: No supported authentication methods available

前端 未结 16 879
挽巷
挽巷 2020-11-29 16:46

i use github and have successfully added and synched files on my laptop in the past.

as of recent i started getting \"PuTTY Fatal Error: Disconnected: No su

16条回答
  •  孤独总比滥情好
    2020-11-29 17:05

    For TortoiseGit Users on Windows

    Originally, I used to setup most of my Github/Bitbucket repositories using the SSH repository URLs as (originally) it used to be the only convenient way to prevent TortoiseGit from prompting for your password on every single action.

    But setting TortoiseGit up this way was always hair-pullingly painful. Every time it took me hours to set up correctly, as the default installation options never seemed to work (even as of 2016, sheesh!).

    But TortoiseGit now has better password management for HTTPS, and Github actually recommends using HTTPS URLs wherever possible.

    SSH URL: git@github.com:User/repo-name.git

    HTTPS URL: https://github.com/User/repo-name.git

    The benefits of HTTPS are:

    • No managing or generating of SSH keys
    • No need to have pageant.exe constantly running (which requests your password on each launch)
    • Using TortoiseGit from Australia, I find that clones over HTTPS are 5-10x faster than SSH

提交回复
热议问题