OpenSSH 配置代理出口服务器
初次配置
# 添加用户组
groupadd "s5proxy"
# openssh限制
cat >> /etc/ssh/sshd_config <<'EOF'
Match Group s5proxy
PasswordAuthentication yes
PubkeyAuthentication no
AllowTcpForwarding local
PermitTTY no
X11Forwarding no
AllowAgentForwarding no
EOF
# 重启openssh添加用户
# 创建用户
useradd -g "s5proxy" -M -d /nonexistent -s /usr/sbin/nologin "john"
# 设置密码
echo "john:johnpassword" | chpasswd
评论已关闭