其他分享
首页 > 其他分享> > git:ssh-keygen不是内部或外部命令

git:ssh-keygen不是内部或外部命令

作者:互联网

使用git的远程仓库,生成秘钥:

ssh-keygen -t rsa -C "xxxxx@163.com"

 

但遇到问题:

ssh-keygen不是内部或外部命令

 

最终work的方法:

1.找到Git(安装目录)/usr/bin目录下的ssh-keygen.exe(如果找不到,可以在计算机全局搜索)

2.属性-->高级系统设置-->环境变量-->系统变量,找到Path变量,进行编辑,End到最后,输入分号,粘贴复制的ssh-keygen所在的路径,保存;

重新cmd,执行ssh-keygen,成功解决。

标签:git,--,外部命令,keygen,ssh,目录
来源: https://www.cnblogs.com/aspire4bettertomorrow/p/14946257.html