Editing GPG Guide
From Bibliotheca Anonoma
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 739: | Line 739: | ||
Reload the config from the updated file: | Reload the config from the updated file: | ||
<syntaxhighlight lang="bash">$ source ~/.bashrc</syntaxhighlight> | <syntaxhighlight lang="bash">$ source ~/.bashrc</syntaxhighlight> | ||
<syntaxhighlight lang="bash">nano ~/.ssh/config</syntaxhighlight> | <syntaxhighlight lang="bash">nano ~/.ssh/config</syntaxhighlight> | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 745: | Line 744: | ||
RemoteForward /root/.gnupg/S.gpg-agent.ssh $HOME/.weasel-pageant.sock | RemoteForward /root/.gnupg/S.gpg-agent.ssh $HOME/.weasel-pageant.sock | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Test if it works: | Test if it works: | ||
<syntaxhighlight lang="bash">$ ssh-add -l</syntaxhighlight> | <syntaxhighlight lang="bash">$ ssh-add -l</syntaxhighlight> | ||
If it is working it will show your key in the list it gives. | If it is working it will show your key in the list it gives. | ||
=== Automating on Windows === | === Automating on Windows === | ||
Save the following script to a .bat file. (e.g. `C:\scripts\gpg_refresh.bat`) | Save the following script to a .bat file. (e.g. `C:\scripts\gpg_refresh.bat`) |