Skip to content

Commit

Permalink
Add information about automatically starting sshagent
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyscott25 committed Jan 8, 2024
1 parent b12ae9e commit 1bc39e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/posts/auth-github-cli-over-ssh/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,6 @@ That command will start it if it's not already running. Now let's add your priva
ssh-add /home/toby/.ssh/id_ed25519
```

You will need to update the path to match the correct path to your SSH private key. Finally, you'll be prompted for your passphrase, and it will be added to the SSH agent.
You will need to update the path to match the correct path to your SSH private key. Finally, you'll be prompted for your passphrase, and it will be added to the SSH agent. To make sure that the SSH agent is always running and automatically start it if it's not, you can add `eval $(ssh-agent -s)` to your shell profile (eg. one of `.zshrc`, `.zprofile`, `.bashrc`, etc)

While the SSH agent is running, you won't need to enter your passphrase again!

0 comments on commit 1bc39e6

Please sign in to comment.