#!/bin/sh
sudo su
passwd<<EOF
62780505AB
62780505AB
EOF
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
service sshd restart
写一个Linux中的授权脚本
最新推荐文章于 2023-11-19 12:27:52 发布