设置 github 作为 git 的远程仓库

标签(空格分隔):github


1 测验SSH公钥是否添加到Github账户中

[ahcj@localhost ~]# ssh -T [email protected]
Warning: Permanently added the RSA host key for IP address '192.30.255.113' to the list of known hosts.
Permission denied (publickey).

上面的例子显示登录失败,这是因为我们还未在GitHub账户中添加SSH公钥。这时需要在本地创建SSH公钥,然后将生成的SSH公钥的文件内容添加到Github帐号上去。

2 生成SSH公钥

[ahcj@localhost ~]ssh-keygen -t rs

猜你喜欢

转载自blog.csdn.net/risen16/article/details/78185506