当前位置:网站首页>SSH服务器拒绝密码,再试一次;PermitRootLogin yes无效问题
SSH服务器拒绝密码,再试一次;PermitRootLogin yes无效问题
2022-07-01 09:40:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
最近有小伙伴xshell远程登录时,出现了如下情况:
网上找的答案也是千篇一律,大多数都是说将PermitRootLogin设置为yes,重启即可,然而很多并不行。
在这里,说一下所有解决办法吧,总有一个适合你:
- 如果没有安装ssh,即看不见PermitRootLogin,则使用如下语句安装:
sudo apt-get install openssh-server使用vim /etc/ssh/sshd_config进入,将PermitRootLogin设置为yes,之后 systemctl restart sshd进行重启。
- ssh用户名,大写更改为小写
- 更改登陆密码,改为6为数
- 还有一种情况是自己设置的,密码输入几次会锁定,需要更改一下。(网上找了一张图)
经过以上几种方法,就可以登录上,如果还不行,可以联系我帮你看看,随时我也是小白(捂脸)。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/131761.html原文链接:https://javaforall.cn
边栏推荐
猜你喜欢

MapReduce programming basics

2022.02.15_ Daily question leetcode six hundred and ninety

Error org apache. catalina. core. StandardContext. FilterStart start filter exception

IPv6 learning notes

樹結構---二叉樹2非遞歸遍曆

SQL学习笔记(01)——数据库基本知识

Flinkv1.13实现金融反诈骗案例

Meituan P4 carefully collated microservice system architecture design manual to see the world of microservice architecture

Swag init error: cannot find type definition: response Response

架构实战营 模块九:设计电商秒杀系统
随机推荐
微信小程序 webview 禁止页面滚动,同时又不影响业务内overflow的滚动的实现方式
Using closures to implement private variables
Concept of digital currency
dotnet 控制台 使用 Microsoft.Maui.Graphics 配合 Skia 进行绘图入门
js原型陷阱
吃一个女富豪的瓜。。。
js原型继承仅可继承实例而非构造器
MT7628K eCos开发入门
Swift control encapsulation - paging controller
JS原型链
计网01-物理层
Tree structure --- binary tree 1
Mikrotik Routeros Internet access settings
js 使用toString 区分Object、Array
Swag init error: cannot find type definition: response Response
SQL learning notes (04) - data update and query operations
Closure implementation iterator effect
CSDN's one-stop cloud service is open for internal testing, and new and old users are sincerely invited to grab the fresh
Spark's action operator
韦东山板子编译内核问题解决