How-to: Enter your SSH key passphrase only once per terminal session
Mar 18, 2021 13:00 · 143 words · 1 minute read
This is one of the things that is always very annoying when setting up a new computer & one of the things I always forget how to do.
- Open your
~/.bashrc
or~/.zshrc
(depending on whether you use Bash or Zsh1) and append this line to the bottom of the file:
|
|
- Open or create
~/.ssh/config
and add these two lines:
|
|
- Close and re-open your terminal again. You should see something
Agent pid 28473
being printed out.
Whenever you do something like git pull
again, you will be asked for your SSH passphrase only once per terminal session - not every time. Yeah! 😁
If you are not sure which shell you are using, enter
echo $0
into your terminal ⇒ the output will likely includebash
orzsh
. ↩︎
- Generating a random string on Linux & macOS
- Caddy web server: Why use it? How to use it?
- Tailwind CSS: A Primer
- Versicherungen: Learnings
- Screen Recording on macOS (without any extra tools)
- WSL2 Cheat Sheet
- Install Docker in WSL2 (Ubuntu) without Docker Desktop
- Converting a Slack message to Markdown
- VirtualBox & macOS Monterey: Fixing 'Kernel driver not installed (rc=-1908)'
- Notes on Productivity