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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. ifrename: command not found
  2. lvresize command examples in Linux
  3. What are /dev/zero and /dev/null files in Linux
  4. How to configure NTP to fall back to local system clock source in CentOS/RHEL
  5. How to remove bonding Network configuration in CentOS/RHEL
  6. apt-key Command Examples in Linux
  7. What Are Dirty Pages in Linux
  8. pidof Command Examples in Linux
  9. How to Create a New Directory in Linux
  10. Linux OS Service ‘sysstat’

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright