Linux服务器一键重装系统(纯净debian)
安装编译依赖库
RedHat/CentOS
yum install -y xz openssl gawk file
Debian/Ubuntu:
apt-get install -y xz-utils openssl gawk file
一键安装Debian 8 64位
bash <(wget --no-check-certificate -qO- 'https://static.ktsee.com/s1/2020/07/17/5f11827485450.txt') -d 8 -v 64 -a
一键安装Debian 7 32位
bash <(wget --no-check-certificate -qO- 'https://static.ktsee.com/s1/2020/07/17/5f11827485450.txt') -d 7 -v 32 -a
默认root密码:MoeClub.org,安装完成后请修改密码
passwd root
配置密钥登陆
vi ~/.ssh/authorized_keys
填入公钥后设置权限
chmod -R 0700 ~/.ssh
chmod -R 0644 ~/.ssh/authorized_keys
开启密钥登陆,关闭密码登录
vi /etc/ssh/sshd_config
修改
StrictModes no
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication no
参考:
评论