| 加固项 | 凭据使用范围 |
|---|---|
| 适用平台 | Linux(OpenSSH) |
| 风险等级 | 中 |
| 基线 | AllowAgentForwarding no |
关闭与核查
关闭与核查
grep -Ei 'agentforward' /etc/ssh/sshd_config
sshd -T | grep agentforwarding
# 关闭:AllowAgentForwarding no客户端侧替代方案
客户端侧替代方案
ssh -o ForwardAgent=no host
# 跳板链路改用 ProxyJump 而非 agent 转发
ssh -J bastion app01ProxyJump 在本地完成认证转发(不暴露 agent 到中间机),是跳板场景的推荐姿势。