十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
mv /etc/apt/sources.list /etc/apt/sources.list.bak
su root
cat > /etc/apt/sources.list <
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install curl wget vim ssh -y
vim /etc/ssh/sshd_config
PermitRootLogin yes #取消注释
systemctl enable ssh
systemctl start ssh
sudo sed -i '/pam_motd.so/ s/^/#/g' /etc/pam.d/sshd
#就是为了注释下面两行,不让他们在现实开机信息
#session optional pam_motd.so motd=/run/motd.dynamic
#session optional pam_motd.so noupdate
vim ~/.bashrc
export PS1="\[\033[01;31m\]\u\[\033[00m\]@\[\033[01;32m\]\h\[\033[00m\][\[\033[01;33m\]\t\[\033[00m\]]:\[\033[01;34m\]\w\[\033[00m\]\n$ "
#生效
source ~/.bashrc