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 PHP to 7.4 on Centos 7
    Viewed 69 times since Wed, Apr 7, 2021
    How to install ioncube on jump server?
    Viewed 33750 times since Wed, Jun 14, 2017
    How to secure SSH jump server / SSH bastion host / SSH gateway
    Viewed 7145 times since Thu, Jun 15, 2017
    Deleting entries in the mysql database table serveractivity_logs
    Viewed 103 times since Tue, Mar 2, 2021
    What is ezeelogin?
    Viewed 1957 times since Mon, Aug 21, 2017
    Install ezeelogin without internet access on Centos 7
    Viewed 104 times since Wed, Dec 30, 2020
    How to install Ezeelogin with a standalone license ?
    Viewed 687 times since Tue, Mar 10, 2020
    Upgrade Ezeelogin Jump server to the latest version
    Viewed 25096 times since Thu, Aug 24, 2017
    How to convert the ppk files to openssh format
    Viewed 11939 times since Fri, Aug 3, 2018
    Connect jumpserver using putty
    Viewed 1320 times since Tue, Apr 2, 2019