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
~/.zshrc(depending on whether you use Bash or Zsh1) and append this line to the bottom of the file:
- Open or create
~/.ssh/configand add these two lines:
- Close and re-open your terminal again. You should see something
Agent pid 28473being 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 $0into your terminal => the output will likely include
- Linux (Debian/Ubuntu): Finding out whether a package is installed
- Windows: Adding programs to autostart
- Hosts file: What is it, why is it useful & how to edit it?
- Vagrant & VirtualBox shared folders: Getting symlinks to work on a Windows host
- SSH: Finding out ECDSA key fingerprint (both server-side & client-side)
- PowerPoint: Inserting Source Code with Syntax Highlighting
- Recommendation: Deep dive guide on web server fundamentals
- Where are globally-installed Go tools located & how to execute them (when using Go similarly to 'npm install -g')
- Compilation of modern CLI Tools (Unix, Shell, Terminal)
- (Linux) file system basics