1. 2
    Manage Keys with ssh-agent and Add SSH Configuration
    3m 26s

Manage Keys with ssh-agent and Add SSH Configuration

InstructorRyan Harris

Share this video with your friends

Send Tweet

In this lesson, we have two local SSH keys: one associated with our personal GitHub account, the other with our work account.

To more easily manage them, we will use ssh-add to add our keys to our system's key manager ssh-agent. Then, we will create a SSH configuration file, which will determine what key to use when connecting to GitHub based upon the URL.

Once we have set up our configuration file, we can test our connections using ssh -T and clone repositories with git clone.

Commands we will be using in the lesson:

  • ls
  • ssh-add
  • touch
  • ssh
  • git clone