当前位置:网站首页>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 controls whether display is displayed through style
- idea正则表达式替换(idea正则搜索)
- Keys and scan based on redis delete keys with TTL -1
- 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 2)
- English语法_不定代词 - other / another
- [eloquence] negotiation persuasion skills and Strategies
- 变分(Calculus of variations)的概念及运算规则
- Goldfish rhca memoirs: cl210 managing storage -- managing shared file systems
- Okaleido ecological core equity Oka, all in fusion mining mode
- 关于左值和右值的一些问题总结[通俗易懂]
猜你喜欢

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

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

Realsense-Ros安装配置介绍与问题解决

How to make a set of code fit all kinds of screens perfectly?

Typora cannot open the prompt to install a new version solution

sqli-labs Basic Challenges Less1-10

D2. Chopping Carrots (Hard Version) (每日一题)

Cologne new energy IPO was terminated: the advanced manufacturing and Zhanxin fund to be raised is the shareholder

Digital Twins - cognition

~4.1 sword finger offer 05. replace spaces
随机推荐
机械制造业数字化新“引擎”供应链协同管理系统助力企业精细化管理迈上新台阶
idea正则表达式替换(idea正则搜索)
Easy entry natural language processing series 12 hidden Markov models
优质数对的数目[位运算特点+抽象能力考察+分组快速统计]
Sqli labs installation environment: ubuntu18 php7
GameFramework制作游戏(二)制作UI界面
Detailed explanation of how R language converts large Excel files into DTA format
Filters get the data in data; Filters use data in data
Jqgrid select all cancel single line click cancel event
Writing standard of physical quantities and unit symbols
Xintang nuc980 set DHCP or static IP
Typora cannot open the prompt to install a new version solution
Basic theory of monocular depth estimation and paper learning summary
Digital Twins - cognition
How to design a high concurrency system?
Nuc980 set up SSH xshell connection
51单片机学习笔记(1)
QObject source code analysis -d pointer and Q pointer
Save the image with gaussdb (for redis), and the recommended business can easily reduce the cost by 60%
thymeleaf通过样式控制display是否显示