Files
CmiiDeploy/1-2025年/54-202501-深圳规自-ARM/sshd_配置修改.sh
2026-05-19 14:28:44 +08:00

9 lines
300 B
Bash

#!/bin/bash
sed -i "s/AllowTcpForwarding no/AllowTcpForwarding yes/g" /etc/ssh/sshd_config
sed -i "s/AllowAgentForwarding no/AllowAgentForwarding yes/g" /etc/ssh/sshd_config
sed -i "s/StrictModes yes/StrictModes no/g" /etc/ssh/sshd_config
systemctl restart sshd
hostnamectl set-hostname 172-31-2-8