ubuntu 开启ssh 并配置root用户登录

1.安装sshserver

sudo apt-getinstall –y openssh-server


2.启动ssh

service ssh start

3.root用户允许ssh登录

1.通过编辑器打开 /etc/ssh/sshd_config 文件

sudo vim /etc/ssh/ssh_config

2.找到 PermitRootLogin 这一项,把后面的值修改为 yes

# Authentication:
LoginGraceTime 120
#PermitRootLogin without-password    //kali 2.0 这一项默认的值
PermitRootLogin yes                  //修改后的值
StrictModes yes

3.重启sshd服务

sudo service ssh restart

猜你喜欢

转载自blog.csdn.net/u014034079/article/details/65634570
今日推荐