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

write picture description here
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 in 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;
write picture description here
then run:
write picture description here

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

write picture description here
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 setting in your github account, click the button as shown below to add it, and that's it!
write picture description here

Guess you like

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