<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>免密登录 - 标签 - lihuu — 系统工程、AI 工具链与 Rust 开发博客</title>
        <link>https://silentstormic.top/tags/%E5%85%8D%E5%AF%86%E7%99%BB%E5%BD%95/</link>
        <description>免密登录 - 标签 - lihuu — 系统工程、AI 工具链与 Rust 开发博客</description>
        <generator>Hugo -- gohugo.io</generator><language>zh-CN</language><lastBuildDate>Thu, 30 May 2019 22:18:47 &#43;0800</lastBuildDate><atom:link href="https://silentstormic.top/tags/%E5%85%8D%E5%AF%86%E7%99%BB%E5%BD%95/" rel="self" type="application/rss+xml" /><item>
    <title>SSH 免密登录配置指南</title>
    <link>https://silentstormic.top/post/ssh-passwordless-login/</link>
    <pubDate>Thu, 30 May 2019 22:18:47 &#43;0800</pubDate>
    <author>lihuu</author>
    <guid>https://silentstormic.top/post/ssh-passwordless-login/</guid>
    <description><![CDATA[<p>SSH（Secure Shell）是 Linux 下最常用的远程连接协议。默认方式需要每次输入密码，通过配置密钥认证可以实现免密登录，提升效率和安全性。</p>
<h2 id="生成密钥对">生成密钥对</h2>
<p>直接运行 ssh-keygen -t rsa</p>
<p></p>
<p>这样会在用户的 <code>.ssh</code> 文件夹中生成密钥文件：</p>
<p></p>
<ul>
<li><code>id_rsa</code>：私钥，保留在本地，不可泄露</li>
<li><code>id_rsa.pub</code>：公钥，需要复制到远程服务器</li>
</ul>
<h2 id="复制公钥到远程服务器">复制公钥到远程服务器</h2>
<p>只需要将其中的 id_rsa.pub 文件复制到目标机器就可以实现无密码访问目的机器了</p>]]></description>
</item>
</channel>
</rss>
