No Supported authentication methods available(server sent: publickey)
时间: 2023-12-24 08:12:27 浏览: 30
This error message usually occurs when trying to connect to a remote server using SSH and the server does not accept the authentication method used by the client.
There are several possible solutions to this issue:
1. Check if the server allows the authentication method used by the client. Common authentication methods include public key, password, and keyboard-interactive.
2. Make sure the correct public key is added to the authorized_keys file on the server. This file should contain the public keys of all the clients that are allowed to connect to the server using SSH.
3. Check if the SSH client is using the correct private key. The private key should match the public key added to the authorized_keys file on the server.
4. Try connecting to the server using a different authentication method, such as password or keyboard-interactive.
5. Check if the SSH server is running on the correct port. The default port for SSH is 22, but some servers may use a different port.
6. Check if the SSH server is configured to allow remote login. Some servers may be configured to only allow local login.
If none of these solutions work, contact the system administrator or the support team for further assistance.