ubuntu在刚装入系统的时候无法从网络网络ssh到root 用户,需要修改配置文件才可以通过网络ssh登录root 用户,修改方法如下
apt install ssh
vim /etc/ssh/sshd_config
将以下两项修改为yes
PasswordAuthentication yes
PermitRootLogin yes
#其中该项是是否允许root用户登录, 当端口暴露在公网的时候, 建议关闭该项, 用足够安全密码的其他用户登录
[#阿里云的服务器优惠](https://www.aliyun.com/minisite/goods?userCode=ek3puaqk)