在操作廖雪峰Git教程添加远程库时,按步骤添加ssh key后推送出错。
在ssh方式下关联本地git版本库和github版本库:
$ git remote add origin git@github.com:Yikoufang/gitlearning.git
其中Yikoufang:本人的用户名,gitlearning:自己创建的库名
后,使用推送文件命令:
$ git push -u origin master
出错如下:
The authenticity of host 'github.com (13.250.177.223)' can't be established.
RSA key fingerprint is SHA256:3fgcj8jD9wTZJFlcOjIZyO4PH/KlJJ5JvF4Ghw5BGLU.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,13.250.177.223' (RSA) to the list of known hosts.
Received disconnect from 13.250.177.223 port 22:2: Connection blocked because server only allows public key authentication. Please contact your network administrator.
Disc