snipt

Ctrl+h for KB shortcuts

Bash

GPG public key import

gpg --keyserver subkeys.pgp.net --recv-key <fingerprint>
gpg --export <fingerprint> | sudo apt-key add -
https://snipt.net/embed/a24db9423c99b35a11a7098d9d29915a/
/raw/a24db9423c99b35a11a7098d9d29915a/
a24db9423c99b35a11a7098d9d29915a
bash
Bash
2
2019-08-21T21:23:23
True
False
False
/api/public/snipt/4268/
gpg-public-key-import
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>gpg --keyserver subkeys.pgp.net --recv-key &lt;fingerprint&gt; </span><span id="L-2"><a name="L-2"></a>gpg --export &lt;fingerprint&gt; <span class="p">|</span> sudo apt-key add - </span></pre></div> </td></tr></table>
apt, gpg, ubuntu