ssh-keygen under windows is not an internal or external command and open the id_rsa.pub file

这里写图片描述
ssh-keygen is not an internal or external command, mainly because ssh-keygen.exe is not found, so we need to configure the directory where the ssh-keygen.exe file is located into the global variable.
1. Find ssh-keygen.exe in the Git/usr/bin directory
2. Properties -> Advanced System Settings -> Environment Variables -> System Variables, find the Path variable, edit it, End to the end, enter a semicolon, paste and copy The path where the ssh-keygen is located, save it;
这里写图片描述
then run:
这里写图片描述

successfully run

ssh-keygen -t rsa -C "你的github帐号所对应的邮箱"

How to open the id_rsa.pub file to get the key inside it!
Go into the ssh folder and enter:

more id_rsa.pub

这里写图片描述
The nonsense on the Internet cat id_rsa.pub
is not under Windows at all, so the error cat is not an internal or external command will be reported.
After obtaining the key, open the settings in your github account, click the button as shown below to add it, and you're done!
这里写图片描述

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325703426&siteId=291194637