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

《小狗钱钱》[德] 博多·舍费尔

《活法》作者:[日]稻盛和夫 pdf下载

一些有意思的网站和贴子

槭树下的家

Re:从零开始的异世界生活 (2016)

IGN评选的史上TOP100游戏(2018版)

人类的十个有趣心理效应

麦当劳免费Wifi帐号密码及连接设置

Tommai mai rub sak tee - Lydia