snipt

Ctrl+h for KB shortcuts

Bash

Generate SSH keypairs

ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
https://snipt.net/embed/23674ab97c9298374947d9484e10ccee/
/raw/23674ab97c9298374947d9484e10ccee/
23674ab97c9298374947d9484e10ccee
bash
Bash
3
2019-06-25T12:44:08
True
False
False
/api/public/snipt/6975/
generate-ssh-keypairs
<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>ssh-keygen -t rsa </span><span id="L-2"><a name="L-2"></a>cat ~/.ssh/id_rsa.pub &gt;&gt; ~/.ssh/authorized_keys </span></pre></div> </td></tr></table>
login, security, shell, ssh