View local ssh public key
1. Search for cmd on the computer and open the terminal
cd ~/.ssh
Note: If the system is reminded that the specified path cannot be found
Solution: Where is your warehouse, just go to the root directory cd ~/.ssh
Assuming that it is on the D drive, the result is as shown in the figure below: Mainly look at the A .pub file is OK.
Two: If it exists, there will be a file with the suffix .pub in the directory. If it does not exist, generate the public key yourself
1. Generate a public key
ssh-keygen -t rsa -C "your email"
2. View the public key: cat id_rsa.pub or vim id_rsa.pub
This long list of things is the public key.