In this post, I show how you set up your shell environment on a Mac to allow SSH authentication with a GPG key.
This solutions works for multiple shell-instances, even if you close them occasionally or if your Mac went to sleep.
What you need:
- GPG Tools. Download from their homepage and install it.
- An account on the remote machine, capable for SSH logins.
- the guts to work with vi in a shell environment.
- A GPG key for authentication purposes.