找回密码
 注册
查看: 4|回复: 0

xshell ssh登录账号时弹出窗口不能输入密码,只能Public Key解决方法

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2024-6-3 15:25:35 | 显示全部楼层 |阅读模式
登录设备,修改sshd_config 文件;把PasswordAuthentication 改成下面的方式,重启sshd服务。( G# f1 Z3 }- D: U7 z  U
PasswordAuthentication yes5 i( F7 C- x6 i6 I
  @" Q" _1 D/ \9 _

5 L; q$ T8 f% s+ k1 w3 z重启sshd
0 O- q7 G- m* C/ t2 dsystemctl restart sshd.service 9 z4 n. |  Z& c% m

5 M% h3 j" B- M3 I/ t; i8 n& ]) F可以正常使用password方法
, J! N+ R  ~- E& G+ c0 S" I+ V! f
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:48 , Processed in 0.017009 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表