ubuntu安装后的开启ssh服务及root访问

星期日, 2019-03-10 | Author: Lee | linux | 2,251 views

ubuntu 安装后的常用处理才能正常使用

1.ubuntu 开启ssh服务

sudo apt-get install openssh-server

2.为ssh服务打开使用root用户登录的权限

#sudo vi /etc/ssh/sshd_config

开启:PermitRootLogin yes

3.重启一下ssh服务

#sudo service ssh restart

4.启用root用户 设置root用户的新密码

#sudo  passwd  root

完成后既可以用root用户进行远程连接

Tags:

文章作者: Lee

本文地址: https://www.pomelolee.com/1855.html

除非注明,Pomelo Lee文章均为原创,转载请以链接形式标明本文地址

No comments yet.

Leave a comment

Search

文章分类

Links

Meta