本文记录一下github上仓库代码推送的时候,配置ssh的步骤。图解详情步骤如下:
步骤
第一步,使用ssh-keygen命令基于RSA算法生成客户端秘钥
输入命令,一路回车即可。
命令:
ssh-keygen -t rsa -C "自己的相关邮箱@163.com"

ssh-keygen 是Unix和类Unix计算机系统上的安全外壳(SSH)协议套件的标准组件,用于通过使用各种加密技术在不安全的网络上建立远程计算机之间的安全shell会话。ssh-keygen实用程序用于生成,管理和转换身份验证密钥。
第二步,在对应文件夹中找到刚生成的秘钥文件,打开公钥id_rsa.pub文件并复制其内容

第三步,在Github 中 SSH and GPG keys新建SSH keys


最后就可以愉快的push代码啦...
网友评论