admin管理员组

文章数量:1542784

一、vagrant安装的centos7开启远程连接权限

将PasswordAuthentication no 改为PasswordAuthentication yes

二、开启root密码登入

1、用vagrant ssh连接虚拟机

2、修改root的登入密码

sudo passwd root

#root默认的密码是vagrant,同时vagrant默认的密码也是vagrant

3、修改ssh config 配置文件

sudo vi /etc/ssh/sshd_config

3.1 将PermitRootLogin状态改为yes,开启root登入

3.2 重启sshd服务

sudo systemctl restart sshd

本文标签: 登入Vagrantroot