大量更新
This commit is contained in:
9
54-202501-深圳规自-ARM/sshd_配置修改.sh
Normal file
9
54-202501-深圳规自-ARM/sshd_配置修改.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user