标签(空格分隔):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