Enable SSH Key based authentication and Disable Password Authentication in ssh

Hardening Authentication in SSH.

  • Enable SSH Key based authentication
  • Disable Password Authentication in sshd configuration file

root@gateway :vi /etc/ssh/sshd_config

PubkeyAuthentication yes

# To disable tunneled clear text passwords, change to no here!

PasswordAuthentication no


root@gateway : service sshd restart



0 (0)
Article Rating (No Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed
    How to upgrade OpenSSH in Centos ?
    Viewed 316 times since Wed, Jul 22, 2020
    Can the software be compromised?
    Viewed 1585 times since Mon, Aug 21, 2017
    Is it a hosted solution?
    Viewed 1700 times since Mon, Aug 21, 2017
    How to set user password lifetime for expiry
    Viewed 312 times since Wed, Apr 15, 2020
    Upgrade Ezeelogin Jump server to the latest version
    Viewed 23244 times since Thu, Aug 24, 2017
    Where do i view the changelog | Release notes for Ezeelogin jump server ?
    Viewed 2327 times since Wed, Jun 14, 2017
    Install slave / secondary node for high availability in jump server
    Viewed 4391 times since Wed, Jun 14, 2017
    Installing Jump server or Bastion host on a linux host in Google or AWS instance ?
    Viewed 20305 times since Thu, Sep 21, 2017
    MariaDB Connector Vulnerability CVE-2020-13249
    Viewed 243 times since Wed, Jun 17, 2020