meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| sw:gpg:forwarding [2022/10/06 10:32] – niziak | sw:gpg:forwarding [2022/11/26 10:30] (current) – niziak | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| ===== local machine ===== | ===== local machine ===== | ||
| + | |||
| + | Ensure '' | ||
| + | <file bash ~/ | ||
| + | # Launch gpg-agent if not started | ||
| + | export GPG_TTY=" | ||
| + | gpgconf --launch gpg-agent | ||
| + | </ | ||
| Public and secret key must be present on local machine | Public and secret key must be present on local machine | ||
| Line 17: | Line 24: | ||
| Get '' | Get '' | ||
| <code bash> | <code bash> | ||
| - | $ gpgconf--list-dirs agent-extra-socket | + | $ gpgconf --list-dirs agent-extra-socket |
| / | / | ||
| </ | </ | ||
| Line 49: | Line 56: | ||
| StreamLocalBindUnlink yes | StreamLocalBindUnlink yes | ||
| </ | </ | ||
| + | |||
| + | and restart sshd: <code bash> | ||
| + | |||
| + | |||
| + | ===== usage ===== | ||
| + | |||
| + | On remote machine: | ||
| + | <code bash> | ||
| + | gpg --list-secret-keys | ||
| + | </ | ||
| + | |||
| + | Sign message: | ||
| + | <code bash> | ||
| + | echo TEXT | gpg -s | ||
| + | </ | ||
| + | |||
| + | ===== Issues ===== | ||
| + | |||
| + | '' | ||
| + | |||
| + | <code bash> | ||
| + | gpg-agent[2022]: | ||
| + | gpg-agent[2022]: | ||
| + | gpg-agent[3881]: | ||
| + | gpg-agent[3881]: | ||
| + | gpg-agent[2022]: | ||
| + | gpg-agent[2022]: | ||
| + | gpg-agent[2022]: | ||
| + | </ | ||
| + | |||
| + | Problem with displaying password prompt. | ||
| + | Solution (exec on host) | ||
| + | <code bash> | ||
| + | echo " | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||