Skip to content

Commit

Permalink
Update root.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanY610 authored May 30, 2023
1 parent a173cf5 commit 67d4e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vpsroot/root.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $su sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ss
$su sed -i 's/^#\?RSAAuthentication.*/RSAAuthentication yes/g' /etc/ssh/sshd_config;
$su sed -i 's/^#\?PubkeyAuthentication.*/PubkeyAuthentication yes/g' /etc/ssh/sshd_config;
$su rm -rf /etc/ssh/sshd_config.d/* && rm -rf /etc/ssh/ssh_config.d/*;
$su ystemctl restart sshd ssh;
$su systemctl restart sshd ssh;
green "VPS当前用户名:root"
green "vps当前root密码:$mima"
else
Expand Down

0 comments on commit 67d4e42

Please sign in to comment.