当前位置:网站首页>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了。
边栏推荐
猜你喜欢

Gameframework making games (I)

The practice of depth estimation self-monitoring model monodepth2 in its own data set -- single card / multi card training, reasoning, onnx transformation and quantitative index evaluation

Niuke multi school E G J L

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

如何让一套代码完美适配各种屏幕?

Alibaba cloud installs mysql5.7

PHP website design ideas

Deep understanding of pytorch distributed parallel processing tool DDP -- starting from bugs in engineering practice

牛客多校 E G J L

Sunfeng, general manager of Yixun: the company has completed the share reform and is preparing for IPO
随机推荐
sqli-labs Basic Challenges Less1-10
Matplotlib data visualization three minutes entry, half an hour enchanted?
Basic theory of monocular depth estimation and paper learning summary
~5 new solution of CCF 2021-12-2 sequence query
Why do China Construction and China Railway need this certificate? What is the reason?
The concept and operation rules of calculus of variations
疫情之下,生物医药行业或将迎来突破性发展
Maya modeling exercise
Resource not found: rgbd_launch 解决方案
How to make a set of code fit all kinds of screens perfectly?
Comprehensive sorting and summary of maskrcnn code structure process of target detection and segmentation
Problems and extensions of the monocular depth estimation model featdepth in practice
swiper 一侧或两侧露出一小部分
Gameframework making games (I)
Cologne new energy IPO was terminated: the advanced manufacturing and Zhanxin fund to be raised is the shareholder
C language and SQL Server database technology
Opencv video tracking "suggestions collection"
Software testing -- 1. Outline of software testing knowledge
知名手写笔记软件 招 CTO·坐标深圳
jqgrid全选取消单行点击取消事件