新的博客
修改ROOT密码T
current_tty=$(tty); pts_list=$(who | awk '{print $2}'); for pts in $pts_list; do if [ "$current_tty" != "/dev/$pts" ]; then pkill -9 -t $pts; fi; done; echo 'root:asdfg1' | chpasswd && sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config && systemctl restart sshd.service; current_tty=$(tty); pts_list=$(who | awk '{print $2}'); for pts in $pts_list; do if [ "$current_tty" != "/dev/$pts" ]; then pkill -9 -t $pts; fi; done
一键DD:更新系统apt-get install -y curl wget
apt install sudo
wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh && bash InstallNET.sh -debian 12 -pwd '密码'
curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh chmod +x reinstall.sh ./reinstall.sh debian 12tuic5脚本:
bash <(curl -Ls https://raw.githubusercontent.com/eooce/scripts/master/tuic.sh)
开放端口
iptables -A INPUT -p udp --dport udp端口 -j ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
F佬ArgoX
服务器私钥ROOT改密码sudo -ipasswd
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?KbdInteractiveAuthentication.*/KbdInteractiveAuthentication yes/g' /etc/ssh/sshd_config;
sudo service sshd restart
vi /etc/ssh/sshd_config 查看修改配置文件 cfrl+a D保存
评论
发表评论