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

参考:

https://moeclub.org/2018/04/03/603/

http://hi.ktsee.com/652.html

评论

Popular Posts

女生可以对男朋友心机到什么程度?(苦)

网站建设公司不挣钱的原因

《红领巾侠》国产优秀动画短片

职场交朋友的11个小技巧

Wenger 单肩包

EQSecure 4.0 Beta2_4.28 内置小信极限安防规则Pro终结版

瑞克和莫蒂 Rick and Morty (2013-2019)

《贫穷的本质(修订版)》阿比吉特·班纳 & 埃斯特·迪弗洛

怎样做一个男人