Github, SSH and keys

This is the third part of a 5 stage activity about DevOps.

This time we need to have a GitHub account. I created a separate repository to test this DevOps lab. We will need to have two-factor authentication enabled, I already had that part done, but here you can find a simple guide to do so if you need it.

To set up the SSH keys, using them to connect to github and testing if it worked out, I used the following guides:

ssh

Then I  did a git clone of my new repository to the server. Remember to use the ssh link, which in my case would be git@github.com:CarminaP/VMtesting.git

git clone

I added an simple html file with some changes, then updated the server with git pull origin master.

pull

To automate the updates I used cron jobs, like what we saw on last post, this guide really helped me out.

Leave a comment