JAVA:【基础九】GitHub上配置SSH密钥

放在最前面

        超级完整流程可参考一下连接《从安装git到在github上创建新项目》:https://blog.csdn.net/qq_41990294/article/details/124631575

一:windows安装git

        1.另行百度,网上资源很多

二:windows生成密钥

        1.密钥的生成位置:

                C:\Users\Administrator\.ssh\id_rsa

                C:\Users\Administrator\.ssh\id_rsa.pub【该文件里面的内容即是密钥】

三:注册到github上

        如图:JAVA:【基础九】GitHub上配置SSH密钥_第1张图片

四:验证是否注册成功

        打开git bash,输入【ssh -T [email protected]

        1.如果返回【Hi ***! You've successfully authenticated, but GitHub does not provide shell access.】       说明配置成功

        2.如果返回【The authenticity of host 'github.com (20.205.243.166)' can't be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes】则输入yes,然后会返回4.1中的信息

你可能感兴趣的:(JAVA,github,ssh,windows)