自行安装 ubuntu server 16.04
1.切换root账号
sudo -s
#输入安装系统时设定的用户名的密码
2.设定root密码
sudo passwd root
#按提示输入两次密码
3.安装open-ssh 模块允许远程登录
apt-get install openssh-server
4.查看是否开启ssh
ps -e|grep ssh
5.开启远程登录
vi /etc/ssh/sshd_config
#PermitRootLogin prohibit-password 修改如下
PermitRootLogin yes
6.重启服务(很重要)
service ssh restart
完成后-可以使用ssh工具进行root远程登录了
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!