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 10:25] – created niziak | sw:gpg:forwarding [2022/10/06 10:57] – 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 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 | ||
+ | </ | ||
+ | |||