• 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. “yum update” fails with “[package version 1] is a duplicate with [package version 2]”
  2. mcopy Command in Linux
  3. What are different Samba Server Types
  4. How to audit all Commands run on OEL 5,6 using auditd
  5. What is the purpose of utmp, wtmp and btmp files in Linux
  6. SSSD Service Failing with “SSSD is already running” in CentOS/RHEL 7
  7. Linux rsync command with practical examples
  8. How to Check Btrfs FileSystem Usage and Perform Balancing
  9. dpkg-scanpackages: command not found
  10. How to create and mount Btrfs file system (explained with examples)

You May Also Like

Primary Sidebar

Recent Posts

  • vgextend Command Examples in Linux
  • setpci command – configure PCI device
  • db_load command – generate db database
  • bsdtar command – Read and write tape archive files

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright