当前位置:网站首页>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_configThe configuration file .sudo vi /etc/ssh/sshd_config - Press i Switch to edit mode , find
#Authentication, takePasswordAuthenticationParameter is modified as yes. As shown in the figure below :explain : if
sshd_configThere is no such configuration item in the configuration file , Then addPasswordAuthentication yesItem 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
边栏推荐
猜你喜欢
随机推荐
Solve the cache breakdown problem
clion mingw64中文乱码
Scrapy教程经典实战【新概念英语】
自定义线程池拒绝策略
华为镜像地址
最佳实践 | 用腾讯云AI意愿核身为电话合规保驾护航
Cinnamon Applet 入门
【黑马早报】华为辟谣“军师”陈春花;恒驰5预售价17.9万元;周杰伦新专辑MV 3小时播放量破亿;法华寺回应万元月薪招人...
Ogre入门尝鲜
LeetCode_ Binary search_ Medium_ 153. Find the minimum value in the rotation sort array
JS function 返回多个值
JS中为什么基础数据类型可以调用方法
How to make join run faster?
Milkdown control icon
Server to server (S2S) event (adjust)
Getting started with MySQL
Cloud detection 2020: self attention generation countermeasure network for cloud detection in high-resolution remote sensing images
Use of polarscatter function in MATLAB
MongoDB的导入导出、备份恢复总结
My "troublesome" subordinates after 00: not bad for money, against leaders, and resist overtime









