Skip to content

oneindex/script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

script

script

DD.sh

bash <(wget --no-check-certificate -qO- 'https://git.io/dd.sh') -d 10 -v 64 -p "自定义root密码" -port "自定义ssh端口"

开机改密:

#!/bin/bash
echo root:Vicer |sudo chpasswd root
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 reboot

About

script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages