Blogger Information
Blog 11
fans 0
comment 1
visits 13885
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
VM虚拟机 Ubuntu server 16.04 允许外部root访问
Alfred的学习笔记
Original
999 people have browsed it

自行安装 ubuntu server 16.04

1.切换root账号

  1. sudo -s
  2. #输入安装系统时设定的用户名的密码

2.设定root密码

  1. sudo passwd root
  2. #按提示输入两次密码

3.安装open-ssh 模块允许远程登录

  1. apt-get install openssh-server

4.查看是否开启ssh

  1. ps -e|grep ssh

5.开启远程登录

  1. vi /etc/ssh/sshd_config
  2. #PermitRootLogin prohibit-password 修改如下
  3. PermitRootLogin yes

6.重启服务(很重要)

  1. 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!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post