#!/bin/bash#允许以root登陆ssh:<<!echo -e "\033[31m 修改规则,允许root远程登录 \033[0m"cat >> /etc/ssh/sshd_config << EOFPasswordAuthentication yesPermitRootLogin yesEOFservice ssh restart!#配置源echo -e "\033[31m 配置华为源(已自动备份) \033[0m"mv /etc/apt/sources.list /etc/apt/sources.list.debian10shbackcat>/etc/apt/sources.list<<EOFdeb http://mirrors.huaweicloud.com/debian/ buster maindeb-src http://mirrors.huaweicloud.com/debian/ buster maindeb http://mirrors.huaweicloud.com/debian/ buster-updates maindeb-src http://mirrors.huaweicloud.com/debian/ buster-updates mainEOFapt-get updateecho -e "\033[31m 完成\n\n\n \033[0m"#安装常用工具echo -e "\033[31m 安装常用工具 \033[0m"apt-get install git vim -yecho -e "\033[31m 完成\n\n\n \033[0m"