IAC - Version Control
GITHUB
GITHUB
  • Background
  • Setting up GitHub
  • Windows
    • Working with a cloned repo
    • Populating a repo from local files
    • Integrate VSCode
  • Linux
    • Using SSH
    • GH Command Line
  • The Basics
    • Forks
    • Logs
    • Undoing Local Changes
  • Larger Projects
    • Setting up a repo
    • Creating my Branch Architecture Locally
    • Creating a Feature Branch
    • Creating my Branch Architecture on GitHub
    • Merging the changes from GitHub on my local machine
    • Merging the changes from my local machine to GitHub
    • Sync the branches in GitHub
  • Finally
Powered by GitBook
On this page
  1. Linux

Using SSH

PreviousLinuxNextGH Command Line

Last updated 6 months ago

Usernames and passwords are old fashioned and low security. It's much better to use SSH keys and logging on and off from Linux servers.

GITHUB

On my Linux server or IoT device, I create a unique SSH key.

ssh-keygen -t ed25519 -C "john.oraw@hotmail.com"

I check the ~/.ssh directory

Did I make a mistake...you can see my public key?

Do you notice, I didn't show you my private key?

Think about it!

I check to see if everything is working.

On GITHUB, I go to my personal profile and add the SSH key, with a meaningful name. I'm currently working on an IoT device called sonar1 running Raspbian OS. Eventually, this IoT device will control a on a robotic vessel.

transducer