mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-08 15:04:05 +08:00
19 lines
964 B
HTML
19 lines
964 B
HTML
<h1 id="ssh-keygen">ssh-keygen</h1>
|
||
<p>为ssh生成、管理和转换认证密钥</p>
|
||
<h2 id="补充说明">补充说明</h2>
|
||
<p><strong>ssh-keygen命令</strong> 用于为“ssh”生成、管理和转换认证密钥,它支持RSA和DSA两种认证密钥。</p>
|
||
<h3 id="语法">语法</h3>
|
||
<pre><code class="language-bash">ssh-keygen(选项)</code></pre>
|
||
<h3 id="选项">选项</h3>
|
||
<pre><code class="language-bash">-b:指定密钥长度;
|
||
-e:读取openssh的私钥或者公钥文件;
|
||
-C:添加注释;
|
||
-f:指定用来保存密钥的文件名;
|
||
-i:读取未加密的ssh-v2兼容的私钥/公钥文件,然后在标准输出设备上显示openssh兼容的私钥/公钥;
|
||
-l:显示公钥文件的指纹数据;
|
||
-N:提供一个新密语;
|
||
-P:提供(旧)密语;
|
||
-q:静默模式;
|
||
-t:指定要创建的密钥类型。</code></pre>
|
||
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->
|