Step-by-step instructions on how to setup git and GitHub with ssh authentication on Linux.
sudo apt-get install git
git config --global user.name "your-github-username"
git config --global user.email "your-github-email-address"
We’ll setup our password to cache for 1 hour for repos that we access via https.
git config --global credential.helper cache git config --global credential.helper 'cache --timeout=14400'
ssh-keygen -t rsa -C "your-github-email-address"
Open a browser to www.github.com and perform the following actions after logging in.
ssh -p 22 -T firstname.lastname@example.org
The output should look like:
The authenticity of host 'github.com (126.96.36.199)' can't be established. RSA key fingerprint is XX:XX:XX:XX:XX:XX:XX:XX. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'github.com,188.8.131.52' (RSA) to the list of known hosts. Hi your-github-username! You've successfully authenticated, but GitHub does not provide shell access.
We specialize in helping professional developers, like you, expand your skill set. Our courses are focused on enabling you to learn everything necessary to use a new technology in a live, production application.
All courses are made with love in
Palo Alto, CA.
Subscribe to our newsletter