当前位置:网站首页>xshell连接服务器把密钥登陆改为密码登陆
xshell连接服务器把密钥登陆改为密码登陆
2022-07-07 11:28:00 【荒-漠】
前提:
腾讯云服务器重装了新的系统,从windows变成CentOS 7.6 在使用xshell登录的时候发现密码登陆变成了密钥登陆。

解决办法:
先登陆腾讯云找到自己的云服务器 一般都有直接免密登陆或者用密码登陆(阿里云同理)

使用免密登陆之后,我们去修改一下系统配置文件中的登陆验证方式
修改 SSH 配置
- 首先先去登陆上服务器。
- 执行以下命令,打开
sshd_config配置文件。sudo vi /etc/ssh/sshd_config - 按 i 切换至编辑模式,找到
#Authentication,将PasswordAuthentication参数修改为 yes。如下图所示:说明:若
sshd_config配置文件中无此配置项,则添加PasswordAuthentication yes项即可。
执行以下命令,重启 ssh 服务。本文以 CentOS 7 为例,请根据您实际使用的操作系统执行命令。-
重启后,您可尝试使用密码进行登录。sudo systemctl restart sshd
边栏推荐
- [QNX Hypervisor 2.2用户手册]6.3.4 虚拟寄存器(guest_shm.h)
- 【Presto Profile系列】Timeline使用
- LeetCode_二分搜索_中等_153.寻找旋转排序数组中的最小值
- mysql 局域网内访问不到的问题
- Practical case: using MYCAT to realize read-write separation of MySQL
- 【学习笔记】线段树选做
- How to reset Google browser? Google Chrome restore default settings?
- 记一次 .NET 某新能源系统 线程疯涨 分析
- 单片机原理期末复习笔记
- Cookie and session comparison
猜你喜欢
随机推荐
How to reset Firefox browser
. Net ultimate productivity of efcore sub table sub database fully automated migration codefirst
Why can basic data types call methods in JS
滑轨步进电机调试(全国海洋航行器大赛)(STM32主控)
shell 批量文件名(不含扩展名)小写改大写
centso7 openssl 报错Verify return code: 20 (unable to get local issuer certificate)
Go语言学习笔记-结构体(Struct)
Pay close attention to the work of safety production and make every effort to ensure the safety of people's lives and property
How to reset Google browser? Google Chrome restore default settings?
Write it down once Net a new energy system thread surge analysis
LED light of single chip microcomputer learning notes
Vscade editor esp32 header file wavy line does not jump completely solved
error LNK2019: 无法解析的外部符号
Cmu15445 (fall 2019) project 2 - hash table details
php——laravel缓存cache
聊聊伪共享
Esp32 series column
[untitled]
DETR介绍
mysql 局域网内访问不到的问题









