当前位置:网站首页>SSH服务器拒绝了密码
SSH服务器拒绝了密码
2022-07-25 14:30:00 【格格巫 MMQ!!】
1安装
yum -y install openssh openssh-clients openssh-server openssh-askpass
2修改 vim /etc/ssh/sshd_config
PermitRootLogin yes
StrictModes yes
UsePAM yes
1.
2.
3.
3重启ssh
systemctl restart sshd


按照网上的说法是不允许root用户登陆
但是,/etc/ssh/sshd_config 已经写入PermitRootLogin yes
解决方法:
设置/etc/sysconfig/selinux 中的SELINUX=disabled
然后重启就OK了
重启ssh #sudo /etc/init.d/ssh restart
重启机器reboot
重启完开启ssh
#sudo /etc/init.d/ssh start
然后连接xshell就OK了。
边栏推荐
- thymeleaf设置disabled
- 51单片机学习笔记(1)
- English grammar_ Indefinite pronoun - other / other
- Can the variable name be in Chinese? Directly fooled people
- GameFramework制作游戏(一)
- ~4.2 CCF 2021-12-1 sequence query
- Educational codeforces round 132 (rated for Div. 2) C, d+ac automata
- 实现一个家庭安防与环境监测系统(二)
- Gameframework making games (II) making UI interface
- ~5 new solution of CCF 2021-12-2 sequence query
猜你喜欢

Typora无法打开提示安装新版本解决办法

Idea settings ignore file configuration when submitting SVN

Interpretation of featdepth self-monitoring model for monocular depth estimation (Part I) -- paper understanding and core source code analysis

Doris学习笔记之与其他系统集成

Niuke multi school E G J L

【MySQL必知必会】触发器 | 权限管理

机械制造业数字化新“引擎”供应链协同管理系统助力企业精细化管理迈上新台阶

Alibaba cloud installs mysql5.7

sqli-labs Basic Challenges Less1-10

Gameframework making games (I)
随机推荐
Keys and scan based on redis delete keys with TTL -1
Digital Twins - cognition
Vs2017 large factory ERP management system source code factory general ERP source code
51单片机学习笔记(1)
Idea regular expression replacement (idea regular search)
Thymeleaf controls whether display is displayed through style
为什么中建、中铁都需要这本证书?究竟是什么原因?
Sunfeng, general manager of Yixun: the company has completed the share reform and is preparing for IPO
Writing standard of physical quantities and unit symbols
【口才】谈判说服技巧及策略
Paddlenlp之UIE关系抽取模型【高管关系抽取为例】
[cartographer_ros] VIII: Official demo parameter configuration and effect
Gateway reports an error service_ UNAVAILABLE
Realize a family security and environmental monitoring system (I)
变分(Calculus of variations)的概念及运算规则
SSM framework integration, simple case
Niuke multi school E G J L
快速搭建Dobbo小Demo
The main function of component procurement system, digital procurement helps component enterprises develop rapidly
From fish eye to look around to multi task King bombing -- a review of Valeo's classic articles on visual depth estimation (from fisheyedistancenet to omnidet) (Part I)