Blog
SavedSearch
Visit Hostlelo

Check Your SSH Server After OpenSSH 10.6p2 and Turn Off Passwords

OpenSSH 10.6p2 works around a password bypass on musl Linux with PAM off. Check if it applies to you, then switch your VPS or WHM server to key-only SSH safely.

The short answer

OpenSSH 10.6p2, released on 2026-11-05, ships a workaround for a password authentication bypass that affects Linux systems using musl libc with PAM disabled, so most VPS and cPanel servers are probably not in that group. Check your openssh-server package and your distro's security tracker rather than trusting the version number alone. Whatever you find, test a key login first, then set PasswordAuthentication to no so a password bug cannot reach you.

Reading options

On this page

OpenSSH 10.6p2 ships a workaround for a password login bypass, but the release notes describe it as affecting Linux systems that use the musl C library and run with PAM disabled. Most VPS and cPanel servers probably do not match that description, so the bug itself is likely not your problem. The useful move is to confirm where you stand, then make password login irrelevant by switching to key-only SSH.

Here is the part people skip. A password bypass only matters if your server accepts passwords over SSH in the first place, and it often does, because the OpenSSH default for PasswordAuthentication is yes.

By the end of this guide you will know which OpenSSH version your server runs, whether this bug applies, and how to turn off SSH passwords safely without locking yourself out.

The short answer

OpenSSH 10.6p2, released on 2026-11-05, ships a workaround for a password authentication bypass that affects Linux systems using musl libc with PAM disabled, so most VPS and cPanel servers are probably not in that group. Check your openssh-server package and your distro's security tracker rather than trusting the version number alone. Whatever you find, test a key login first, then set PasswordAuthentication to no so a password bug cannot reach you.

What SSH password login actually is

SSH (Secure Shell) is the encrypted remote terminal you use to log in to your server. sshd is the program on the server that listens for those logins, and sshd_config is its settings file.

There are two common ways to prove who you are. With password login you type a secret. With key login, your computer holds a private key file and the server holds the matching public key, and the two do a cryptographic handshake.

Think of your building's front door. Password login is a keypad: anyone who learns or guesses the code walks in, and a faulty keypad might let in someone with no code at all. Key login is a physical key cut for your lock. If you remove the keypad entirely, a bug in the keypad stops mattering.

Before you start

  • Access: you can log in to the server as root or as a user with sudo, and you know how to reach your provider's web console or rescue mode if SSH breaks.
  • Backup: you are ready to copy sshd_config before touching it. It takes five seconds.
  • Second terminal: you can open two terminal windows (or two PuTTY sessions) at once. One stays logged in the whole time as your safety line.
  • A working key: you already have an SSH key pair, or you are willing to create one in this session.
  • Time: set aside about 30 minutes, outside your busiest hours.
  • Risk: you understand that a typo in sshd_config followed by a restart can stop SSH from accepting new logins. The steps below are ordered so that never strands you.

Heads up: if you only have cPanel user access (shared hosting, no root), you cannot change these settings yourself. Skip to the last section and send the message there to your host.

Check your version and whether the bug applies

Step 1: Find your OpenSSH version

There are two different programs here: the ssh client on your laptop and the sshd server on your VPS. The one that matters for this bug is the server.

To see the client version on your own computer, run this. The manual describes -V simply as "Display the version number and exit."

ssh -V

For the server, ask the package manager, because that is how your distro installed sshd. On Debian or Ubuntu, this reports the status of the installed package, including a Version: line.

dpkg -s openssh-server

On AlmaLinux, Rocky Linux, CloudLinux or other RPM-based systems (which covers most cPanel servers), this query prints the installed package name and version.

rpm -q openssh-server

Why this matters: distros often backport a security fix into their own package without changing the upstream version number. So a server that reports something older than 10.6p2 may already contain the fix.

The honest way to know whether your package contains a fix is to read the package changelog or your distro's security tracker. On RPM-based systems, this shows the changelog entries for the installed package, newest first.

rpm -q --changelog openssh-server | head -n 30

On Debian and Ubuntu, search for openssh in the Debian Security Bug Tracker or the Ubuntu security notices, and compare what they list with the version dpkg -s gave you.

Step 2: Decide whether the 10.6p2 bug applies to you

At the time of writing (25 November 2026), the OpenSSH release notes say "Portable OpenSSH 10.6p2 was released on 2026-11-05." They describe the fix as one to "avoid password authentication bypass that is exploitable through sshd(8) that affects some Linux systems when built and run with PAM support disabled."

The summary of that release narrows it further: the workaround "affects Linux systems that use the musl libc and PAM disabled." PAM (Pluggable Authentication Modules) is the Linux system that handles logins for many services. musl is a C library, the low-level code nearly every program runs on.

So two things both need to be true for this specific bug to apply:

  1. Your Linux distro uses musl as its C library. Alpine Linux, for example, says it "is built around musl libc and busybox."
  2. Your sshd was built and is running with PAM support disabled.

If you are unsure about either one, check your distro's documentation for which C library it uses and how its openssh-server package is built. If someone else manages the server, ask them directly. The message at the end of this guide does exactly that.

Quick tip: even if you are sure the bug does not apply, keep reading. The OpenSSH team has said it "will, for now, be making more frequent releases to get bugfixes into users' hands more quickly rather than batching them until the next planned release." More releases means more chances for a password-related bug, and key-only login protects you from that whole category.

Move your server to key-only SSH login

Made-up example: Sara runs a small online shop on a VPS at 203.0.113.25. She reads about the bypass, panics, sets PasswordAuthentication no, restarts SSH, and closes her terminal. Her key was never added to the server. Now nobody can log in, including Sara, and she spends her evening in the provider's rescue console. Every step below exists so you do not have Sara's evening.

Step 3: Back up sshd_config

Before you edit anything, make a dated copy of the file. This is the backup command from cPanel's own SSH hardening guide, and it works on any Linux server.

cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak`date +%F`

Step 4: Prove your key login works

This is the step that matters most. You must log in with a key, in a new session, while passwords are still allowed.

If you do not have a key yet, create one on your own computer (not on the server). Ed25519 is the default key type in current OpenSSH, and -C just adds a comment so you can recognise the key later.

ssh-keygen -t ed25519 -C "deploy laptop"

Next, copy the public half to the server for your user. Here the example user is deploy and the example server is 203.0.113.25, so swap in your own. This works now precisely because passwords are still on: the ssh-copy-id manual notes it logs in "presumably using a login password, so password authentication should be enabled".

ssh-copy-id -i ~/.ssh/id_ed25519.pub deploy@203.0.113.25

Now open a second terminal and log in, telling your client to use only public key authentication. If this works, your key is good.

ssh -o PreferredAuthentications=publickey -i ~/.ssh/id_ed25519 deploy@203.0.113.25

If you are asked for a password here, the key is not being accepted. Stop and fix that first (see Troubleshooting), because the next step removes the password fallback.

Heads up: if you plan to log in as root with a key, repeat this test as root. A working key for deploy does not mean root has one.

Step 5: Turn off password login

Open the config in your editor of choice. nano is the friendliest if you are not used to vim.

nano /etc/ssh/sshd_config

Find these lines (they may be commented out with #) and set them like this. If a line does not exist, add it.

PasswordAuthentication no
KbdInteractiveAuthentication no
PermitRootLogin prohibit-password

Here is what each one does. PasswordAuthentication "Specifies whether password authentication is allowed. The default is yes." That default is why so many servers still take passwords.

KbdInteractiveAuthentication controls keyboard-interactive login, a separate method from plain password login, and its default is also yes. Turning it off as well mirrors what cPanel's own tweak does, which switches off both password and challenge-response logins.

PermitRootLogin accepts yes, prohibit-password, forced-commands-only or no, and the default is prohibit-password. You have a real choice here:

  • prohibit-password lets root log in with a key but never with a password. It is the easier option on a cPanel server where you are used to working as root.
  • no blocks direct root logins completely, even with a key. You log in as a normal user like deploy and then use sudo or su. cPanel says "We strongly recommend that you set this value to no."

The tradeoff is convenience against exposure. With no, an attacker needs to know a valid user name as well as get past key login, and your root key never travels anywhere. The cost is that you need a working non-root user with admin rights before you switch, or you lock yourself out of root tasks.

If you choose no, run any harmless command with sudo as deploy in the second terminal now, before you change anything. If it fails, fix that first.

Quick tip: on Ubuntu, the main config file loads extra snippets from /etc/ssh/sshd_config.d/, and Ubuntu's documentation explains that for most settings OpenSSH uses the first value it reads. A snippet in that folder that says PasswordAuthentication yes can quietly win over your edit. Check it with this command.

grep -ri "passwordauthentication\|permitrootlogin" /etc/ssh/sshd_config.d/

If anything shows up, edit that snippet too, or put your settings in a snippet of your own that sorts first.

Step 6: Test the config before you reload

Never restart sshd on an untested config. The manual describes -t as "Test mode. Only check the validity of the configuration file and sanity of the keys."

sshd -t

Silence is good news here. Any output means there is an error to fix first.

Then check what sshd will actually use. -T is "Extended test mode": it checks the file and prints the effective configuration, which catches the drop-in problem from Step 5.

sshd -T | grep -E "passwordauthentication|permitrootlogin|kbdinteractiveauthentication"

You will see the expected lines in the "How to check it worked" section below. If the values are not what you set, do not restart yet.

Step 7: Restart SSH and test a fresh login

Keep your first terminal open and logged in. That session is your safety line if the new settings misbehave.

On a cPanel server, use cPanel's own script.

/scripts/restart_sshd

cPanel also lists this as an alternative.

service sshd restart

On Ubuntu and Debian, the service is named ssh, and Ubuntu's documentation uses this command.

sudo systemctl restart ssh.service

Now, from a new terminal, log in again with your key. cPanel's guide says to log in again with the user, IP address and port number you set in sshd_config after the restart. Doing that from a new window while the old one stays open is the safe way.

ssh -i ~/.ssh/id_ed25519 deploy@203.0.113.25

Then prove that passwords are really off. This tells your client to try only a password, so it should be refused.

ssh -o PreferredAuthentications=password deploy@203.0.113.25

Only once both results look right should you close the original session.

The WHM route: SSH Password Authorization Tweak

If you run cPanel and WHM and prefer clicking to editing files, WHM has a built-in switch. You find it under WHM > Security Center > SSH Password Authorization Tweak.

cPanel says the feature lets you "enable or disable password authorization for SSH authentication." It writes PasswordAuthentication and ChallengeResponseAuthentication into /etc/ssh/sshd_config, setting both to no when you disable passwords.

Heads up: this setting also applies to root. If you disable passwords and root has no working key, you have locked yourself out of root SSH.

So set up a key first. cPanel points you to WHM » Home » Security Center » Manage root's SSH Keys to create or import the key for root. Then test a key login in a second terminal exactly as in Step 4, before you touch the tweak.

When the key login works, follow these steps.

  1. Open SSH Password Authorization Tweak in WHM.
  2. Click Disable Password Auth.
  3. Keep your existing SSH session open.
  4. Open a new terminal and log in with your key.
  5. Run sshd -T as shown in Step 6 to confirm the effective values.

If you ever need passwords back, the same page has an Enable Password Auth button.

Why this matters: the tweak's documentation only mentions the two password settings. If you want root logins restricted as well, set PermitRootLogin by hand using Steps 3 to 7.

How to roll back

If something goes wrong and you still have a working session, put the backup back. Replace the date with the one on your backup file.

cp /etc/ssh/sshd_config.bak2026-11-25 /etc/ssh/sshd_config

Test it, then restart with whichever command matches your system from Step 7.

sshd -t && /scripts/restart_sshd

If you changed a snippet in /etc/ssh/sshd_config.d/, undo that change as well, or the old values will not come back.

If you have no working session at all, use your provider's web console, rescue mode or KVM console to log in, then restore the backup the same way. This is why the checklist asked you to know where that console is.

How to check it worked

Run the effective config check as root.

sshd -T | grep -E "passwordauthentication|permitrootlogin|kbdinteractiveauthentication"

If you chose prohibit-password, you should see these lines.

passwordauthentication no
kbdinteractiveauthentication no
permitrootlogin prohibit-password

If you chose to block root completely, the last line reads permitrootlogin no instead.

The password-only login test from Step 7 should fail with a message like this.

deploy@203.0.113.25: Permission denied (publickey).

Your key login, on the other hand, should drop you at a shell prompt with no password question.

Troubleshooting

"Permission denied (publickey)" when you log in with your key

The server only accepts keys and is not accepting yours. The usual causes are the public key missing from ~/.ssh/authorized_keys for that user, or your client offering a different key from the one you copied.

Run the login with -v to see which key your client offers, and point it at the right one with -i. On the server, check that the key line is in the right user's authorized_keys file. If you are still logged in elsewhere, temporarily turn passwords back on (roll back) while you fix it.

ssh -v -i ~/.ssh/id_ed25519 deploy@203.0.113.25

sshd -t prints an error

Good, it caught the problem before a restart did. The message usually names the file and line number. Common culprits are a misspelled setting name or a value the setting does not accept.

Fix the line, then run sshd -t again until it is silent. cPanel also warns against copying any example sshd_config wholesale, for exactly this reason: it may not match your server.

Locked out after the restart

If your original session is still open, roll back from there. If not, log in through your provider's console or rescue mode, restore the dated backup, run sshd -t, and restart.

If you changed the SSH port as part of this, cPanel notes that "If you change the default SSH port, you must update your server's firewall configuration to allow traffic to the new port." A firewall that still only allows the old port looks exactly like a lockout.

The WHM tweak says passwords are off, but password logins still work

Check the effective config with sshd -T. If it still shows passwordauthentication yes, another file is winning. On systems that load snippets from /etc/ssh/sshd_config.d/, the first value read usually wins, so a snippet can override the main file the tweak edits.

Also make sure sshd was actually restarted after the change. Run /scripts/restart_sshd and test again.

sshd -T shows the new values, but you still get a password prompt

Your client may be falling back to keyboard-interactive login, which is a separate method. Make sure kbdinteractiveauthentication no appears in the sshd -T output, restart, and test again.

Security notes

Key-only login removes password guessing and password bugs from the picture. It does not make the server safe on its own. You still need to apply your distro's updates when they land, because the real fix for any sshd bug is a patched package.

Protect your private key like a house key. Give it a passphrase when ssh-keygen asks and keep it off shared machines. When someone leaves the project, remove their public key from authorized_keys.

If you also log in to WHM and cPanel through the web, add a second factor there too. Our guide to enabling two-factor authentication in cPanel and WHM walks through it. For keeping the base system patched, see how to patch apt on an Ubuntu VPS.

And if you have reason to think someone already got in through SSH, changing a setting is not enough. Work through rotating email, FTP and WordPress credentials after a host breach as well.

The one message worth forwarding

If someone else runs your server, you do not need to do any of this yourself. Send them this, adjusting the server address and user name.

Hi, quick security check on our server (203.0.113.25, example.com).

OpenSSH 10.6p2 (released 2026-11-05) includes a workaround for a password authentication bypass that affects Linux systems using musl libc with PAM disabled.

Could you please:
1. Tell me which openssh-server package version we run, and whether our distro's package already includes this fix.
2. Confirm whether our system uses musl libc and whether sshd runs with PAM disabled.
3. Switch SSH to key-only login (PasswordAuthentication no) after confirming my key works for user "deploy".
4. Tell me what PermitRootLogin is set to, and whether we can move it to prohibit-password or no.

Please keep a backup of sshd_config and test a new key login before closing your session. Thanks!

The takeaway: patch when your distro ships the fix, but turn off SSH passwords anyway, because a login method you do not offer cannot be bypassed.

Reader questions

Does OpenSSH 10.6p2 need to be installed by hand from openssh.org?

Usually no. On a VPS or cPanel server you get OpenSSH from your distro's packages, so wait for and apply your distro's update rather than compiling upstream code yourself.

Is my Windows or Mac laptop affected by this sshd bug?

The fix is in sshd, the server program, and the release notes describe it as affecting some Linux systems. Your laptop's ssh client is a separate program, though it is still worth keeping updated.

Can I still use FileZilla or another SFTP app after turning off SSH passwords?

Yes, as long as the app is set up to use your private key. Most SFTP clients have a key file or key-based login option in the site settings.

Will disabling SSH passwords stop me logging in to cPanel or WHM in the browser?

No. The SSH Password Authorization Tweak controls SSH authentication. Web logins to cPanel and WHM are a separate system.

What if I lose my private key after going key-only?

You will need another way in, such as a second authorised key or your provider's web console or rescue mode. Keep a backup of your key somewhere safe and consider adding a second key for emergencies.

Should I also change the SSH port?

It is optional and does not replace key-only login. If you do change it, cPanel notes you must update your server's firewall so the new port is reachable.

Sources & further reading

  1. OpenSSH 10.6p2 release notes
  2. ssh(1) manual page
  3. ssh_config(5) manual page
  4. sshd_config(5) manual page
  5. sshd(8) manual page
  6. cPanel: How to Secure SSH
  7. cPanel: SSH Password Authorization Tweak
  8. Ubuntu Server docs: OpenSSH server
  9. ssh-copy-id(1) manual page
  10. About Alpine Linux

Originally published . About our editorial updates.

Your next project deserves a better foundation.

Explore hosting built for your next chapter.

Explore hosting

Find your next answer.

Search published guides and articles.

Ctrl / ⌘ K to open · Esc to close