重启ssh并修改登录方式

nginx 收藏
0 60
vim /etc/ssh/sshd_config

开启 PermitRootLogin yes

开启PasswordAuthentication yes

vim /etc/passwd

更改需要密码登录用户为
www:x:1001:1001::/home/www:/bin/bash

systemctl restart ssh.service

systemctl restart sshd.service


    暂时没有人评论
精选帖子
热门帖子
1创建flutter应用 93
2js 变量命令法 92
3回流和重绘 92
4js 添加邮箱验证 91
5应用配置 91
6flutter 构建模式 90
7在phtml中使用图片 89
8作用域 89
9v-if 和 v-else 89