new article
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-12-24 17:22:00 +01:00
parent fe4f3941fa
commit f96ebeb68d
2 changed files with 29 additions and 34 deletions

View File

@@ -0,0 +1,29 @@
# SSH Keys from Token on MacOS
Install gnupg and opensc using homebrew:
```
brew install gnupg
brew install opensc
```
Create gpg-agent.conf file in `~/.gnupg`:
```
enable-ssh-support
pinentry-program /opt/homebrew/bin/pinentry-mac
default-cache-ttl 600
max-cache-ttl 7200
default-cache-ttl-ssh 600
max-cache-ttl-ssh 7200
```
Load agent in `.bashrc`:
```
SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
export SSH_AUTH_SOCK
gpg-connect-agent /bye
```