- Author: Pedric Kng
- Updated: 09 Mar 21
This article share how to generate a git SSH key, install it on windows and execute a git clone
-
Generate the SSH keypair and store the key files as prompted e.g., C:\Users\you\.ssh
# Generate the ras key pair ssh-keygen -t rsa -b 4096 -C "[email protected]"
-
Check with your respective SCM on how to add the SSH public key accordingly.
-
Add the ssh keys to the ssh agent accordingly.
# Check that the agent is up and running eval $(ssh-agent) # Add the private key file generated previously. ssh-add ~/.ssh/id_rsa
- In the event of exception "invalid format", it could because the format is not accepted.
You can use PuttyGen[3] to convert the Conversions -> Export OpenSSH key
- In the event of exception "invalid format", it could because the format is not accepted.
-
Execute a git clone
git clone [email protected]:cxdemosg/JavaVulnerableLab.git
Generating Your SSH Public Key [1]
Generating a new SSH key and adding it to the ssh-agent [2]
Puttygen [3]
How do I tell Git for Windows where to find my private RSA key? [4]