meta data for this page
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
sw:gpg:forwarding [2022/10/06 08:25] – created niziak | sw:gpg:forwarding [2022/10/08 20:33] – niziak | ||
---|---|---|---|
Line 3: | Line 3: | ||
Search tags: '' | Search tags: '' | ||
- | Source: [[https:// | + | Source: |
+ | * [[https:// | ||
+ | * [[https:// | ||
===== 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 15: | Line 24: | ||
Get '' | Get '' | ||
<code bash> | <code bash> | ||
- | $ gpgconf--list-dirs agent-extra-socket | + | $ gpgconf --list-dirs agent-extra-socket |
/ | / | ||
</ | </ | ||
Line 32: | Line 41: | ||
===== remote machine ===== | ===== remote machine ===== | ||
- | Public key must be imported on remote machine | + | Public key must be imported on remote machine: |
<code bash> | <code bash> | ||
gpg --import usert@example.com-public.asc | gpg --import usert@example.com-public.asc | ||
Line 40: | Line 50: | ||
gpg: | gpg: | ||
</ | </ | ||
+ | |||
+ | |||
+ | Modify ssh server configuration to enable automatic removal of stale sockets when connecting to the remote machine: | ||
+ | <file config / | ||
+ | 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 ===== | ||
+ | |||
+ | gpg: signing failed: Inappropriate ioctl for device | ||
+ | |||
+ | |||
+ | |||
+ | |||