1# List all SSH Identities loaded on agent
2`ssh-add -l`
3
4# Check for Public SSH Key in the local machine
5Ensure a public and private key pair exist
6`ls -al ~/.ssh`
7
8# Add your local SSH key to the ssh-agent
9## Start the SSH agent
10`eval "$(ssh-agent -s)"`
11
12# OSX config
13`vi ~/.ssh/config`
14```
15Host *
16 AddKeysToAgent yes
17 UseKeychain yes
18 IdentityFile ~/.ssh/id_rsa
19```
20
21# Add the Private key to SSH agent
22`ssh-add -K ~/.ssh/id_rsa`
23
24# Copy SSH Key to clipboard
25`pbcopy < ~/.ssh/id_rsa.pub`
26
27# Restart SSHD Service
28`sudo launchctl stop com.openssh.sshd`
Created on 9/16/2017