<?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>安全加固 on heihie</title><link>https://heihei0299.github.io/tags/%E5%AE%89%E5%85%A8%E5%8A%A0%E5%9B%BA/</link><description>Recent content in 安全加固 on heihie</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sat, 04 Apr 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://heihei0299.github.io/tags/%E5%AE%89%E5%85%A8%E5%8A%A0%E5%9B%BA/index.xml" rel="self" type="application/rss+xml"/><item><title>linux下禁止普通用户通过 sudo su 或 su root 切换到root用户</title><link>https://heihei0299.github.io/posts/ops/linux%E4%B8%8B%E7%A6%81%E6%AD%A2%E6%99%AE%E9%80%9A%E7%94%A8%E6%88%B7%E9%80%9A%E8%BF%87-sudo-su-%E6%88%96-su-root-%E5%88%87%E6%8D%A2%E5%88%B0root%E7%94%A8%E6%88%B7/</link><pubDate>Sat, 04 Apr 2026 00:00:00 +0800</pubDate><guid>https://heihei0299.github.io/posts/ops/linux%E4%B8%8B%E7%A6%81%E6%AD%A2%E6%99%AE%E9%80%9A%E7%94%A8%E6%88%B7%E9%80%9A%E8%BF%87-sudo-su-%E6%88%96-su-root-%E5%88%87%E6%8D%A2%E5%88%B0root%E7%94%A8%E6%88%B7/</guid><description>同时禁止普通用户通过 sudo su 与 su root 切换到 root：pam_wheel 限制 + sudoers 命令白名单两步配置</description></item><item><title>OpenSSH 使用方法</title><link>https://heihei0299.github.io/posts/ops/openssh/</link><pubDate>Sat, 04 Apr 2026 00:00:00 +0800</pubDate><guid>https://heihei0299.github.io/posts/ops/openssh/</guid><description>OpenSSH 完整使用指南：安装、服务端配置、密钥生成，以及 ssh/scp/sftp/ssh-agent/ssh-copy-id 等客户端工具的常用选项</description></item><item><title>创建新用户并启用ssh登录</title><link>https://heihei0299.github.io/posts/ops/%E5%88%9B%E5%BB%BA%E6%96%B0%E7%94%A8%E6%88%B7%E5%B9%B6%E5%90%AF%E7%94%A8ssh%E7%99%BB%E5%BD%95/</link><pubDate>Sat, 04 Apr 2026 00:00:00 +0800</pubDate><guid>https://heihei0299.github.io/posts/ops/%E5%88%9B%E5%BB%BA%E6%96%B0%E7%94%A8%E6%88%B7%E5%B9%B6%E5%90%AF%E7%94%A8ssh%E7%99%BB%E5%BD%95/</guid><description>创建仅用于 SSH 登录的受限用户：禁用 sudo/su 提权，配置公钥认证与 .ssh 目录权限</description></item><item><title>Debian 11 开机基础配置：bash 补全、SSH 安全与 nftables</title><link>https://heihei0299.github.io/posts/ops/debian11%E5%BC%80%E6%9C%BA%E6%93%8D%E4%BD%9C/</link><pubDate>Mon, 09 Apr 2018 00:00:00 +0800</pubDate><guid>https://heihei0299.github.io/posts/ops/debian11%E5%BC%80%E6%9C%BA%E6%93%8D%E4%BD%9C/</guid><description>Debian 11 开机后要做的三件事：安装 bash-completion、SSH 公钥登录加固（改端口禁密码）、用 nftables 配置防火墙</description></item></channel></rss>