当前位置:网站首页>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了。
边栏推荐
- opencv视频跟踪「建议收藏」
- Goldfish rhca memoirs: cl210 managing storage -- managing shared file systems
- Throwing OutOfMemoryError “Could not allocate JNI Env“
- 牛客多校 E G J L
- Comprehensive sorting and summary of maskrcnn code structure process of target detection and segmentation
- Bond0 script
- The security market has entered a trillion era, and the security B2B online mall platform has been accurately connected to deepen the enterprise development path
- BIO、NIO、AIO示例
- Application practice: Great integrator of the paddy classification model [paddlehub, finetune, prompt]
- 手把手教你申请SSL证书
猜你喜欢

MySQL table operation

sudo rosdep init Error ROS安装问题解决方案

How to make a set of code fit all kinds of screens perfectly?
![优质数对的数目[位运算特点+抽象能力考察+分组快速统计]](/img/c9/8f8f0934111f7ae8f8abd656d92f12.png)
优质数对的数目[位运算特点+抽象能力考察+分组快速统计]

English grammar_ Indefinite pronoun - other / other

Typora cannot open the prompt to install a new version solution

IDEA报错 Failed to determine a suitable driver class

The concept and operation rules of calculus of variations

Realize a family security and environmental monitoring system (I)

Teach you how to apply for SSL certificate
随机推荐
Runtimeerror: CUDA out of memory (solved) [easy to understand]
Flask SSTI injection learning
华为ensp路由器静态路由(默认路由的下一跳地址)
Okaleido ecological core equity Oka, all in fusion mining mode
~5 new solution of CCF 2021-12-2 sequence query
Melodic + Realsense D435i 配置及错误问题解决
Educational codeforces round 132 (rated for Div. 2) C, d+ac automata
Gameframework making games (II) making UI interface
Realize a family security and environmental monitoring system (I)
Interpretation of featdepth self-monitoring model for monocular depth estimation (Part I) -- paper understanding and core source code analysis
软件测试 -- 1 软件测试知识大纲梳理
Teach you how to apply for SSL certificate
优质数对的数目[位运算特点+抽象能力考察+分组快速统计]
[cartographer_ros] VIII: Official demo parameter configuration and effect
jqgrid全选取消单行点击取消事件
The supply chain collaborative management system, a new "engine" of digitalization in machinery manufacturing industry, helps enterprises' refined management to a new level
Jqgrid select all cancel single line click cancel event
如何让一套代码完美适配各种屏幕?
Resource not found: rgbd_launch 解决方案
Gameframework making games (I)