Debian Debian and Centos Auto Script / OCS Panel 😁

admin

Administrator
Staff member
Administrator
Joined
Jun 25, 2019
Messages
597
Reaction score
366
Points
63
bonv scrpit debian & centos

wget -q '
You do not have permission to view link Log in or register now.
' && chmod +x Debian* && ./DebianVPS-Installer




curl -O "
You do not have permission to view link Log in or register now.
" && chmod +x centos6* && ./centos6-ovpn-squid


Autoscript ocspannel

sudo su -

yum install dos2unix -y &> /dev/null

wget -qO /etc/ssh/sshd_config "
You do not have permission to view link Log in or register now.
"

dos2unix /etc/ssh/sshd_config

sed -i 's|use_authtok|#|g' /etc/pam.d/system-auth

sed -i "s/password\s*requisite/#password requisite/g" /etc/pam.d/system-auth

sed -i '/\/usr\/sbin\/nologin/d' /etc/shells

sed -i '/\/bin\/false/d' /etc/shells

echo -e "/usr/sbin/nologin\n/bin/false" >> /etc/shells

service sshd restart

# set pass
passwd root




Credit to boss bonv
 
Last edited:
Top Bottom