How I Uploaded My NR-V2X Pedestrian Safety Project to GitHub Using SSH (Windows + Git Bash)
If you’re a researcher or student, keeping your projects on GitHub is a lifesaver. It gives version control, easy sharing, and backup. In this tutorial, I’ll show you how I uploaded my NR-V2X Pedestrian Safety project to GitHub securely using SSH on Windows.
Step 1: Install Git and Open Git Bash
First, install Git for Windows: https://git-scm.com/downloads
Once installed, open Git Bash — it handles SSH much better than Command Prompt or PowerShell.
Step 2: Create an SSH Folder
In Git Bash, type:
mkdir ~/.ssh
This creates a hidden .ssh folder in your home directory.
Step 3: Generate an SSH Key Pair
ssh-keygen -t ed25519 -C "your_email@example.com" -f ~/.ssh/id_ed25519
- Press Enter when asked for a passphrase (optional)
- This creates:
id_ed25519→ private key (keep secret)id_ed25519.pub→ public key (to share with GitHub)
Step 4: Start the SSH Agent and Add Your Key
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
This ensures Git Bash can use your SSH key for authentication.
Step 5: Add the Public Key to GitHub
- Copy your public key to clipboard:
cat ~/.ssh/id_ed25519.pub - On GitHub, go to: Settings → SSH and GPG Keys → New SSH Key
- Paste the key, give it a title like My PC, then save
Step 6: Test the SSH Connection
ssh -T git@github.com
You should see:
Hi username! You've successfully authenticated, but GitHub does not provide shell access.
✅ This confirms SSH is working.
Step 7: Link Your Local Repository to GitHub
cd "/path/to/your/project"
git remote set-url origin git@github.com:username/your-repo.git
Replace username and your-repo with your GitHub username and repository name.
Step 8: Push Your Project
git add .
git commit -m "Initial commit: NR-V2X pedestrian safety project"
git push -u origin main
All your project files are now safely on GitHub. For future updates:
git add .
git commit -m "Update: description of change"
git push
Outcome
- Your project is live on GitHub
- SSH ensures secure, password-free pushes
- Version control and collaboration are easy
💡 Tip: Always use Git Bash on Windows for SSH workflows — avoids the common “authentication failed” errors.

Comments
Post a Comment