๐๏ธ Date: June 28, 2025
๐ Project: Black Hat Python
๐ป System: Kali Linux Virtual Machine
โ Purpose
To securely push and pull code from my private GitHub repository (black-hat-python) using SSH keys inside my Kali Linux VM. This setup eliminates the need for GitHub username/password authentication and supports safe command-line Git operations.
๐ง Summary of Steps
- SSH Key Generation:
I generated a newed25519SSH key usingssh-keygenwith the comment “ny2honolulu”. This created a public/private key pair at~/.ssh/id_ed25519andid_ed25519.pub. - SSH Agent Activation:
I launched the SSH agent usingeval "$(ssh-agent -s)"and added my key withssh-add ~/.ssh/id_ed25519. - GitHub Authentication:
I copied the contents of my public key and added it to GitHub under Settings โ SSH and GPG Keys. GitHub accepted the key and confirmed successful authentication with:
โHi ny2honolulu! You’ve successfully authenticated, but GitHub does not provide shell access.โ - Repo Cloning:
I cloned my privateblack-hat-pythonrepository from GitHub to my Kali VM using the SSH URL. This lets me commit and push changes securely while following along with the Black Hat Python book.
๐ Notes
- This setup is specific to my Kali Linux VM for learning from Black Hat Python.
- GitHub no longer supports password login over HTTPS, so SSH is essential for private repo access.
- Everything is now ready for secure Git operations from the Kali VM terminal.