github添加sshkey

在本机生成公钥:

# 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。

posted @ 2012-07-06 12:10  Leo Forest  阅读(159)  评论(0编辑  收藏  举报