<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>SSH on SecDoc</title>
    <link>https://secdoc.jazor.net/categories/ssh/</link>
    <description>Recent content in SSH on SecDoc</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-cn</language>
    <copyright>© 2026 黑豆子</copyright>
    <lastBuildDate>Mon, 06 Apr 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://secdoc.jazor.net/categories/ssh/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>SSH 配置文件详解</title>
      <link>https://secdoc.jazor.net/posts/ssh-config-file-guide/</link>
      <pubDate>Mon, 06 Apr 2026 00:00:00 +0800</pubDate>
      
      <guid>https://secdoc.jazor.net/posts/ssh-config-file-guide/</guid>
      <description>每次 SSH 连接都要输入一长串参数？~/.ssh/config 配置文件可以简化连接命令，还能统一管理多个主机的配置。
配置文件位置 SSH 客户端配置按以下顺序读取（后读取的优先级更高）：
/etc/ssh/ssh_config — 系统全局配置 ~/.ssh/config — 用户个人配置 用户配置会覆盖全局配置中的同名选项。
基本语法 配置文件由多个 Host 块组成，每个块定义一组主机的配置：
1 2 3 4 5 6 Host 别名 选项1 值1 选项2 值2 Host 另一个别名 选项1 值1 注意：每行的缩进使用空格（通常 4 个空格或 1 个 Tab），不是必须但推荐。
常用配置选项 选项 说明 示例 HostName 实际主机名或 IP HostName 192.168.1.100 User 登录用户名 User admin Port SSH 端口 Port 2222 IdentityFile 指定私钥文件 IdentityFile ~/.ssh/id_ed25519 PreferredAuthentications 首选认证方式 PreferredAuthentications publickey ServerAliveInterval 心跳间隔秒数 ServerAliveInterval 60 ServerAliveCountMax 心跳失败次数上限 ServerAliveCountMax 3 ProxyJump 跳板机 ProxyJump bastion 实战示例 简化连接命令 不使用配置文件：</description>
    </item>
    
    <item>
      <title>SSH 密钥认证配置指南</title>
      <link>https://secdoc.jazor.net/posts/ssh-key-auth-setup/</link>
      <pubDate>Sat, 04 Apr 2026 00:00:00 +0800</pubDate>
      
      <guid>https://secdoc.jazor.net/posts/ssh-key-auth-setup/</guid>
      <description>详细讲解 SSH 密钥认证的完整配置流程，包括密钥生成、公钥部署、配置优化等步骤。</description>
    </item>
    
  </channel>
</rss>
