Files
CmiiDeploy/54-202501-深圳规自-ARM/sshd_配置修改.sh
2025-02-21 14:00:16 +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