Ubuntu与centos的区别小用法

给root设置密码

更新软件下载的地址

安装指令apt

使用ssh登录Ubuntu

使用ssh登录Ubuntu必须注意的地方,要先配置

sudo vi /etc/ssh/sshd_config

 

找到:PermitRootLogin prohibit-password禁用

 

添加:PermitRootLogin yes

 

sudo service ssh restart



 

posted @ 2019-08-23 15:35  Yan帅  阅读(348)  评论(0编辑  收藏  举报