在本机生成公钥:
# ssh-keygen -t rsa -C "someone@host.com"
提示:
enter file in which to save the key(/root/.ssh/id_rsa):
直接回车就可以,然后是输密码。
接下复制 /root/.ssh/id_rsa.pub的内容,添加到github。
在本机生成公钥:
# ssh-keygen -t rsa -C "someone@host.com"
提示:
enter file in which to save the key(/root/.ssh/id_rsa):
直接回车就可以,然后是输密码。
接下复制 /root/.ssh/id_rsa.pub的内容,添加到github。
转载于:https://www.cnblogs.com/Leo-Forest/archive/2012/07/06/2579211.html