当前位置:网站首页>Xshell connection server changes key login to password login
Xshell connection server changes key login to password login
2022-07-07 13:32:00 【Barren desert】
Premise :
Tencent cloud server reinstalled the new system , from windows become CentOS 7.6 In the use of xshell When logging in, I found that the password login became the key login .
terms of settlement :
First log in to Tencent cloud and find your own cloud server Generally, there are direct password free login or password login ( The same goes for Alibaba cloud )
After using password free login , Let's modify the login verification method in the system configuration file
modify SSH To configure
- First, log in to the server .
- Execute the following command , open
sshd_config
The configuration file .sudo vi /etc/ssh/sshd_config
- Press i Switch to edit mode , find
#Authentication
, takePasswordAuthentication
Parameter is modified as yes. As shown in the figure below :explain : if
sshd_config
There is no such configuration item in the configuration file , Then addPasswordAuthentication yes
Item can . - Execute the following command , restart ssh service . This article takes CentOS 7 For example , Please execute the command according to your actual operating system .
-
After restart , You can try to login with a password .sudo systemctl restart sshd
边栏推荐
- [QNX Hypervisor 2.2用户手册]6.3.4 虚拟寄存器(guest_shm.h)
- Fast development board pinctrl and GPIO subsystem experiment for itop-imx6ull - modify the device tree file
- Why can basic data types call methods in JS
- flask session伪造之hctf admin
- Navicat运行sql文件导入数据不全或导入失败
- 实现IP地址归属地显示功能、号码归属地查询
- Mongodb command summary
- Vscode编辑器ESP32头文件波浪线不跳转彻底解决
- Digital IC Design SPI
- DETR介绍
猜你喜欢
随机推荐
室内ROS机器人导航调试记录(膨胀半径的选取经验)
Some principles of mongodb optimization
LIS 最长上升子序列问题(动态规划、贪心+二分)
MongoDB的用户管理总结
Talk about pseudo sharing
Ikvm of toolbox Net project new progress
Read PG in data warehouse in one article_ stat
cmake 学习使用笔记(一)
About the problem of APP flash back after appium starts the app - (solved)
记一次 .NET 某新能源系统 线程疯涨 分析
Data refresh of recyclerview
Detr introduction
聊聊伪共享
php——laravel缓存cache
Centso7 OpenSSL error Verify return code: 20 (unable to get local issuer certificate)
JNA learning notes 1: Concepts
flask session伪造之hctf admin
如何让electorn打开的新窗口在window任务栏上面
Storage principle inside mongodb
RealBasicVSR测试图片、视频