Fix PuTTY No Supported Authentication Methods Error

PuTTY’s “No supported authentication methods available” error means it reached an SSH server but could not complete authentication using the methods the server offered. If the message ends with (server sent: publickey), first check your login username and load the matching private key: a key-only server will not fall back to a password. Start with the client checks below before changing server permissions or authentication policy.

Use the full error message to choose the right starting point:

Symptom Likely Cause First Check
server sent: publickey, with no password prompt PuTTY has no accepted key for that account Verify the username and selected private key
Server refused our key before the fatal error The offered key is not authorized, or the server rejects its use Check the account’s authorized public key and server logs
PuTTY cannot load the private-key file Wrong file type, damaged file, or incompatible key-file version Import the original private key with current PuTTYgen
server sent: publickey,keyboard-interactive Neither key authentication nor the available challenge-response process completed Check PuTTY’s authentication options and the server’s access policy

What the PuTTY Authentication Error Means

SSH connection setup and SSH login are separate stages. This error occurs during login: an SSH server has already answered, but authentication has not succeeded.

The methods in parentheses are the methods the server advertised at that stage. They are not necessarily every method the server supports for every account.

For key-based login, the two sides need matching credentials:

  • Your computer holds the private key, which PuTTY uses to prove your identity.
  • The server authorizes the corresponding public key for the account you are trying to access.

A valid private key can therefore fail with the wrong username. A correctly formatted .ppk file can also contain the wrong key.

Because an SSH server is responding, opening firewall ports or restarting the SSH service is usually not the appropriate first fix. However, you should still verify that PuTTY reached the intended server rather than a different machine.

How to Fix “No Supported Authentication Methods Available” in PuTTY

Work through the client checks first. Only move to server-side changes if the correct account and private key still fail.

Step 1: Check the Host, Port, and Username

  1. Open PuTTY and load the saved session you actually use.
  2. Under Session, verify the hostname or IP address and select SSH as the connection type.
  3. Check the port. The default SSH port is 22, but servers can use a different port; confirm the exact value in the server’s connection details and PuTTY’s Session settings.
  4. Open Connection > Data and inspect the auto-login username. Correct it, or leave it blank so PuTTY asks which account to use.
  5. Save the corrected session and reconnect.

Use the server account’s username, not automatically your Windows username, email address, hosting-panel login, or cloud-console identity.

For a cloud VM, the expected username depends on the image and how the VM was provisioned. Do not assume that the account used by a browser-based console is the account your saved PuTTY session selects.

Step 2: Read the PuTTY Event Log

  1. Open the PuTTY window menu and select Event Log.
  2. Review the authentication entries immediately before the failure.
  3. Determine whether PuTTY failed to load a key, offered a key that was rejected, or never offered the intended key.

The distinction matters:

  • A local key-loading failure means PuTTY cannot use the selected file. Changing the server’s authorized_keys will not fix that.
  • A key refusal means the server did not accept the offered key for the requested account. That does not necessarily mean the key file is damaged.
  • An unexpected agent key means PuTTY may be trying a credential from Pageant rather than the one you intended.

Record the exact messages rather than only the final fatal-error dialog. After correcting the indicated problem, reconnect and check whether authentication progresses further.

If you share the log for troubleshooting, redact private hostnames, addresses, and account details as appropriate. Never share the private-key file or its passphrase.

Step 3: Load the Correct Private Key

If the same host and username work with id_rsa in Command Prompt, check PuTTY’s loaded key before changing the server or network.

An OpenSSH private key and a .ppk file are not automatically the same key because they have similar filenames. If PuTTY or FileZilla fails with a .ppk while another client succeeds, use the working private key as the starting point.

  1. Locate the private key associated with the target account. Do not select its .pub file; that contains the public key.
  2. If you already have the correct .ppk, select it in PuTTY. Otherwise, open PuTTYgen and choose File > Load Private Key.
  3. Load the original OpenSSH or .pem private-key file. Adjust the file filter if the file is not visible, and enter its passphrase if requested.
  4. Choose Save private key to save a PuTTY-compatible .ppk. Keep passphrase protection on the saved private key.
  5. In PuTTY, open Connection > SSH > Auth. In current versions, open the Credentials subsection, then browse to the private-key file for authentication.
  6. Return to Session, save the session, and open a new connection.

Converting a private key changes its storage format, not the underlying key pair. Simply renaming a .pem file to .ppk does not convert it.

If you need to compare keys, compare their key fingerprints, not file checksums, which change when the format changes.

A prompt for the key’s passphrase unlocks your local private key. It is not a request for the remote account’s password.

Step 4: Check Pageant and Key-File Compatibility

If PuTTY still does not offer the expected key, isolate the local authentication setup.

  1. If you use Pageant, inspect the keys loaded into the agent.
  2. For a controlled test, temporarily disable agent authentication in PuTTY’s authentication options and explicitly select the intended private-key file.
  3. If PuTTY reports that it cannot read the key format, update PuTTY and PuTTYgen together using their official distribution.
  4. Reimport the original private key if necessary, save the session, and reconnect.

Keep the original private key until the new file works. Do not generate a replacement key pair merely to solve a format problem: a newly generated key will not match the public key already authorized on the server.

If the log instead identifies an unsupported signing algorithm, investigate that specific compatibility problem. Updating the client is preferable to broadly re-enabling obsolete algorithms on the server.

Once the explicit-key test succeeds, either keep that setup or load the verified key into Pageant and test the agent-based connection.

Step 5: Check the Server’s Authorized Key and Permissions

Use an existing working session, a provider’s browser console, or another approved recovery channel. Server-side changes require access to the server; they cannot be performed through the failed PuTTY connection.

  1. Confirm which server account you are repairing.
  2. Inspect that account’s public-key authorization file. On a typical OpenSSH setup, it is ~/.ssh/authorized_keys, although the administrator can configure another location.
  3. Add the public key that matches your selected private key if it is missing. PuTTYgen can display public-key text intended for OpenSSH’s authorized_keys format.
  4. Preserve existing authorized keys unless you deliberately intend to revoke them.

Each public key should occupy one logical line. Do not paste a private key, the contents of a .ppk file, or a wrapped block of key text into authorized_keys.

For a Linux or Unix account using the standard location, run the following commands as the account being repaired. The ~ shortcut refers to the current account’s home directory; running these from an administrator’s home directory would change the wrong files.

Restrict access to the SSH directory:

chmod 700 ~/.ssh

Restrict access to the authorized-keys file:

chmod 600 ~/.ssh/authorized_keys

Also check ownership and the home directory’s permissions. Mode changes do not correct ownership, and OpenSSH may reject an authorization file if its surrounding directories are writable by other users. Have the administrator restore the intended ownership and remove unintended write access if needed.

Open a fresh PuTTY connection while keeping your recovery session available. Changes to authorized_keys normally take effect without restarting SSH.

If the key is still refused, inspect the server’s authentication log for that login attempt. It can distinguish an unauthorized key from account restrictions, unsafe permissions, or a signature-policy rejection.

Step 6: Check Password and Challenge-Response Policy

Take this branch only if the server is supposed to allow password or interactive login. Do not enable password access merely to avoid repairing an intended key-only setup.

For ordinary password login:

  1. Confirm that the server actually offers password authentication.
  2. Connect with the intended account and enter its server password when prompted.
  3. If password authentication is not offered, ask the administrator to check the effective SSH policy for that account.

Standard PuTTY attempts ordinary password authentication when the server offers it. A client option cannot make a key-only server accept passwords.

For challenge-response login:

  1. Open Connection > SSH > Auth and make sure keyboard-interactive authentication is allowed.
  2. Reconnect and complete the prompts the server supplies.
  3. If the expected prompts never appear, have the administrator inspect the server’s interactive-authentication configuration.

On OpenSSH servers, KbdInteractiveAuthentication controls keyboard-interactive authentication; ChallengeResponseAuthentication is its older, deprecated alias. The setting accepts yes or no. Confirm the effective value in the server’s SSH configuration, commonly /etc/ssh/sshd_config, including any included files or account-specific rules.

Ordinary password authentication is separately controlled by PasswordAuthentication. A password-like prompt can come from keyboard-interactive authentication, so the appearance of the prompt alone does not identify which method is being used.

If an authorized server-policy change is necessary, keep a working session or console open, have the configuration validated, and apply it using the platform’s supported procedure. Test a new PuTTY login before closing the recovery connection.

Cloud VM and Restricted-Server Login Problems

Cloud VM Usernames and Key Recovery

For EC2, check the image’s expected username and the private key associated with the instance; these are central checks in AWS’s connection troubleshooting guidance. Remember that a key recorded at instance creation does not guarantee its public key remains installed after later server changes.

A working Lightsail browser connection proves that a login route is available. It does not prove that your local .ppk matches the credential used by that browser connection.

When the public key needs repair:

  1. Keep the working browser session or approved recovery channel open.
  2. Confirm the target account.
  3. Restore the matching public key, or use the provider’s supported key-reset workflow if the original private key is unavailable.
  4. Select the corresponding private key in PuTTY and test a new connection before ending recovery access.

On Azure, the VM’s Reset password page includes a Reset SSH public key option. Supply the intended username and its public key as a single logical line. If you generate a new key pair for this recovery, save its private key locally and use that new private key for the PuTTY test.

Never paste the private key into a cloud-console field that requests an SSH public key.

ESXi and Host Access Restrictions

On ESXi, this error can involve authentication policy rather than a damaged .ppk. Challenge-response configuration can affect whether interactive login is available, and Lockdown Mode can restrict host access.

Use approved console or management access to check both the SSH authentication configuration and the host’s access policy. Do not treat publickey,keyboard-interactive as proof that password login should succeed, and do not disable Lockdown Mode simply to suppress the error.

If a policy adjustment is authorized, apply it through the supported host-management process and test a fresh PuTTY connection. Keep console or management access available until the intended account can log in successfully.

How to Confirm the PuTTY Fix

A successful repair should work from a newly opened connection, not just from a session that was already authenticated.

Check that:

  • PuTTY connects to the intended machine and account.
  • The Event Log shows the expected authentication method succeeding.
  • You reach the expected shell or service.
  • Closing and reopening the saved session preserves the working configuration.
  • Any temporary diagnostic changes have been restored to your intended setup.

Save the working session with a recognizable name. Keep private keys in protected storage, and update saved sessions when you replace a key or change an account.

If login still fails, send the administrator the exact error, target username, destination, PuTTY version, and a redacted Event Log. Ask them to match that attempt to the server’s authentication log; do not send your private key or passphrase.

Frequently Asked Questions

Does Reinstalling PuTTY Fix Authentication Failure on Windows?

Reinstalling PuTTY does not correct a wrong username, an unauthorized public key, or a mismatched private key. Updating can resolve compatibility problems, but Windows itself is usually not the cause when the connection reaches SSH authentication.

Can I Recover a Lost Private Key From authorized_keys?

No. The public keys stored in authorized_keys cannot be used to reconstruct their private keys. Recover the private key from a protected backup, or use an approved recovery channel to authorize a new key pair and remove the lost key’s authorization when appropriate.

What Are the Three Types of Authentication?

The three authentication factors are something you know, something you have, and something you are. These are security categories, not the method names shown in PuTTY’s error: SSH commonly uses public-key, password, and keyboard-interactive methods. An encrypted private key’s local passphrase does not, by itself, mean the server is enforcing multifactor authentication.

Why Does PuTTY Ask for More Authentication After Accepting My Key?

The server may require another authentication method after accepting the key, such as a keyboard-interactive verification code. Key acceptance can therefore be a successful intermediate step rather than a completed login. Complete the additional prompt, or ask the administrator which authentication sequence the account requires.