• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to allow ssh with empty passwords in Linux

by admin

Question: How can we allow a user with empty password to login to a Linux system?

Although it seems a risky requirement, but sometimes in a private, development environment this can come handy. Also openssh provides you with an option to have empty passwords for users while doing ssh.

From the man page of sshd_config:

# man sshd_config
...
     PermitEmptyPasswords
             When password authentication is allowed, it specifies whether the server allows login to accounts with empty password strings. The default is no.

So by default, ssh will not allow users to login with empty passwords. But if we set the PermitEmptyPasswords parameter value to “yes” in the configuration file /etc/ssh/sshd_config, users can login with an empty password.

# vi /etc/ssh/sshd_config
PermitEmptyPasswords yes

Make sure to unhash the parameter if it is hashed out in the configuration file.

Filed Under: Linux

Some more articles you might also be interested in …

  1. latte-dock Command Examples in Linux
  2. How to (Correctly) Change the UID and GID of a user/group in Linux
  3. iw Command Examples in Linux
  4. ln Command Examples in Linux
  5. vgcreate Command Examples in Linux
  6. Example of using getnstimeofday in Linux kernel
  7. Permissions 0644 for ‘/home/username/.ssh/your_pem_file.pem:’ are too open
  8. ipcrm: command not found
  9. gnatmake Command Examples
  10. gnome-screenshot: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright