当前位置:论坛首页 > Linux面板 > 求助

【待反馈】SSH无法登录,设置SSH安全管理,提示错误。

发表在 Linux面板2022-4-21 21:57 [复制链接] 7 6530

360截图20220421215400848.jpg 360截图20220421215420122.jpg
请各位大神指点迷津!谢谢!
使用道具 举报 只看该作者 回复
发表于 2022-4-21 22:43:52 | 显示全部楼层
您好,请到服务器命令或者面板文件管理内找下是否存在PasswordAuthentication参数
或者截图出来看下
使用道具 举报 回复 支持 反对
发表于 2022-4-22 09:34:11 | 显示全部楼层
谢花郎 发表于 2022-4-21 22:43
您好,请到服务器命令或者面板文件管理内找下是否存在PasswordAuthentication参数
或者截图出来看下 ...

这个参数具体在哪个文件里?谢谢
使用道具 举报 回复 支持 反对
发表于 2022-4-22 09:36:35 | 显示全部楼层
宝塔用户_qvmyra 发表于 2022-4-22 09:34
这个参数具体在哪个文件里?谢谢

/etc/ssh/sshd_config这个文件内
使用道具 举报 回复 支持 反对
发表于 2022-4-22 09:41:48 | 显示全部楼层
本帖最后由 宝塔用户_qvmyra 于 2022-4-22 10:05 编辑

# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.

# Configuration data is parsed as follows:
#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.

# Site-wide defaults for some commonly used options.  For a comprehensive
# list of available options, their meanings and defaults, please see the
# ssh_config(5) man page.

Include /etc/ssh/ssh_config.d/*.conf

Host *
#   ForwardAgent no
#   ForwardX11 no
#   ForwardX11Trusted yes
#   PasswordAuthentication yes
#   HostbasedAuthentication no
#   GSSAPIAuthentication no
#   GSSAPIDelegateCredentials no
#   GSSAPIKeyExchange no
#   GSSAPITrustDNS no
#   BatchMode no
#   CheckHostIP yes
#   AddressFamily any
#   ConnectTimeout 0
#   StrictHostKeyChecking ask
#   IdentityFile ~/.ssh/id_rsa
#   IdentityFile ~/.ssh/id_dsa
#   IdentityFile ~/.ssh/id_ecdsa
#   IdentityFile ~/.ssh/id_ed25519
#   Port 22
#   Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
#   MACs hmac-md5,hmac-sha1,umac-64@openssh.com
#   EscapeChar ~
#   Tunnel no
#   TunnelDevice any:any
#   PermitLocalCommand no
#   VisualHostKey no
#   ProxyCommand ssh -q -W %h:%p gateway.example.com
#   RekeyLimit 1G 1h
    SendEnv LANG LC_*
    HashKnownHosts yes
    GSSAPIAuthentication yes

使用道具 举报 回复 支持 反对
发表于 2022-4-22 16:26:33 | 显示全部楼层
宝塔用户_qvmyra 发表于 2022-4-22 09:41
# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  ...

自己改过sshd的配置文件吗?您那边找下有无原始文件,重新恢复下
使用道具 举报 回复 支持 反对
发表于 2022-4-22 19:24:56 | 显示全部楼层
谢花郎 发表于 2022-4-22 16:26
自己改过sshd的配置文件吗?您那边找下有无原始文件,重新恢复下

没有改过呀。印象中装好宝塔后就登不上shh。我没有原始文件。
使用道具 举报 回复 支持 反对
发表于 2022-4-22 21:47:15 | 显示全部楼层
宝塔用户_qvmyra 发表于 2022-4-22 19:24
没有改过呀。印象中装好宝塔后就登不上shh。我没有原始文件。

联系下服务器运营商看下吧
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

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