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

随身WiFi折腾指南: 解锁、刷机与DIY

Cromite - 极度注重隐私的Chromium浏览器

吞食天地2 诸葛孔明传 FC中文原版(nes格式手机可玩)

一些通用的公司职位简称

Firefox火狐浏览器ESR长期支持版

微软必应拼音输入法1.6.302.06

《银河帝国》舰队进化史

Web2.0时代的网页视觉设计

快图浏览QuickPic 4.5.2 - 收购前的最后一个版本