putty Faual Error:No supported authentication methods available (server sent: publickey)

简介: putty Faual Error:No supported authentication methods available (server sent: publickey)

Fatal Error: No supported authentication methods available (server sent: publickey)

问题描述

错误通常发生在使用PuTTY连接到SSH服务器时出现身份验证问题的情况下。这个错误表示SSH服务器要求使用公钥身份验证,但PuTTY客户端未能提供有效的公钥进行身份验证。

解决方案

检查SSH服务器的配置

确保服务器上已启用公钥身份验证,并且允许使用PuTTY客户端进行连接。如果您对服务器没有管理权限,请联系服务器管理员进行确认。

生成SSH密钥对

使用PuTTY Key Generator (PuTTYgen) 生成公钥和私钥对。打开PuTTYgen,点击"Generate"按钮来生成新的密钥对。然后,保存私钥(以.ppk扩展名)和公钥。

puttygen 下载:

  • Unix source archive for putty
类型 地址 FTP下载 signature
.tar.gz putty-0.78.tar.gz (via FTP) (Signature)

请参考:

将公钥添加到服务器

将生成的公钥添加到SSH服务器的授权密钥列表中。可以使用SSH客户端或服务器管理界面完成此操作。确保将公钥正确地复制到服务器上,并将其保存为您的用户账户的授权密钥。

配置PuTTY客户端

打开PuTTY客户端,进入"Connection" -> “SSH” -> "Auth"选项卡。在"Private key file for authentication"字段中,选择您生成的私钥文件(.ppk)。确保已选择了正确的私钥文件。

如果上述步骤仍然无法解决问题,您可以尝试其他身份验证方法,例如密码身份验证。在PuTTY客户端的"Connection" -> “SSH” -> "Auth"选项卡中,选择"Password"作为身份验证方法,并提供正确的用户名和密码。

目录
相关文章
|
3月前
|
Java 关系型数据库 MySQL
记录解决一个小错误:Establishing SSL connection without server‘s identity verification is not recommended
本文记录了解决Spring Boot连接MySQL时出现的SSL连接警告问题的步骤,通过在数据源配置中添加`useSSL=false`来禁用SSL连接。
|
7月前
|
缓存 数据安全/隐私保护 Windows
ECDSA host key for ... has changed and you have requested strict checking.Host key verification fail
ECDSA host key for ... has changed and you have requested strict checking.Host key verification fail
|
SQL JavaScript 关系型数据库
Client does not support authentication protocol requested by server
Client does not support authentication protocol requested by server
82 0
|
网络安全
解决WARN: Establishing SSL connection without server‘s identity verification is not recommended警告问题~
解决WARN: Establishing SSL connection without server‘s identity verification is not recommended警告问题~
182 0
|
关系型数据库 MySQL 数据库
MySql错误 1251 - Client does not support authentication protocol requested by server
MySql错误 1251 - Client does not support authentication protocol requested by server
97 0
|
网络安全
WARN: Establishing SSL connection without server‘s identity verification is not recommended
WARN: Establishing SSL connection without server‘s identity verification is not recommended
117 0
|
Ubuntu Linux 网络安全
Ubuntu的ssh免密登录出现错误:sign_and_send_pubkey: signing failed: agent refused operation
Ubuntu的ssh免密登录出现错误:sign_and_send_pubkey: signing failed: agent refused operation
358 0
Ubuntu的ssh免密登录出现错误:sign_and_send_pubkey: signing failed: agent refused operation
服务器重启后 Host key verification failed
服务器重启后 Host key verification failed
155 0
服务器重启后 Host key verification failed
|
Linux 网络安全
WARNING:The remote SSH server rejected X11 forwarding request.
WARNING:The remote SSH server rejected X11 forwarding request.
208 0
WARNING:The remote SSH server rejected X11 forwarding request.
|
存储 关系型数据库 MySQL
警告解决:Establishing SSL connection without server‘s identity verification is not recommended. Accordin
警告解决:Establishing SSL connection without server‘s identity verification is not recommended. Accordin
1896 0