Debian9安装SSH并允许root用户SSH登录

安装SSH

# apt install openssh-server openssh-client

 

启动SSH服务

# /etc/init.d/ssh start

 

添加SSH开机启动

# update-rc.d ssh enable

 

若要取消开机启动

# update-rc.d ssh disable

 

Debian 9默认不允许root用户以SSH登录,需要修改 /etc/ssh/sshd_config 


#PermitRootLogin prohibit-password
修改为
PermitRootLogin yes

 

修改后的配置文件内容,第33行为新增的内容

Debian9安装SSH并允许root用户SSH登录_第1张图片

 

转载于:https://www.cnblogs.com/oukunqing/p/8553731.html

你可能感兴趣的:(Debian9安装SSH并允许root用户SSH登录)