debian10开启ssh服务

您所在的位置:网站首页 debian开启ssh debian10开启ssh服务

debian10开启ssh服务

#debian10开启ssh服务| 来源: 网络整理| 查看: 265

1.安装ssh服务sudo apt-get update #更新软件源sudo apt-get install ssh #安装2.修改sshd_config文件,命令为:vi /etc/ssh/sshd_config将#PasswordAuthentication no的注释去掉,并且将no修改为yes将#PermitRootLogin prohibit-password的注释去掉,将prohibit-password改为yesPasswordAuthentication yesPermitRootLogin yes或echo -e “PasswordAuthentication yes\nPermitRootLogin yes” >> /etc/ssh/sshd_config3.启动SSH服务,命令为:/etc/init.d/ssh start // 或者service ssh start4.验证SSH服务状态,命令为:/etc/init.d/ssh status

添加开机自启动 update-rc.d ssh enable


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3