sh 新的VPS设置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 新的VPS设置相关的知识,希望对你有一定的参考价值。

# as root
apt-get install bash-completion
adduser admin
usermod -aG sudo admin

# copy public key to /home/admin/.ssh/authorized_keys:
# from remote:
ssh-copy-id admin@server.com # enter admin password
# check if connection through ssh key is working before moving next

# as root
nano /etc/ssh/sshd_config
#####
PasswordAuthentication no
PubkeyAuthentication yes
ChallengeResponseAuthentication no
#####
systemctl reload sshd

sudo apt-get remove apache2

以上是关于sh 新的VPS设置的主要内容,如果未能解决你的问题,请参考以下文章

新的vps服务器怎么配置搭建网站

sh vps-run.sh

sh start_vps.sh

sh vps__openvpn_install.sh

sh vps初始化

sh vps安装