SSH Key
Use this guide to create an SSH key on Windows and add it to your Git hosting service for secure, password-less pushes.
Create SSH Key
- Here is the command to create an SSH key. If you want to start pushing your projects to GIT, it's the first step.
- When you log in to the GIT website you will see a notification to add your SSH key. Run this command in PowerShell or CMD:
- Replace the email and the path. Then open the generated
.pubfile at the specified path with Notepad, copy all text, and paste it into the GitLab/GitHub website.
Optional (recommended): use ed25519 for smaller keys and better security:
Check for existing Key
Copy public key (Windows)
Notes
- Keep your private key (
your_key_namewithout.pub) secure and never share it. - Use
ssh-agentto load keys for the session: