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

:wq

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
    Will i be locked out of my servers if my ezeelogin hosted server goes down ?
    Viewed 3119 times since Mon, Aug 21, 2017
    How to upgrade OpenSSH in Centos ?
    Viewed 675 times since Wed, Jul 22, 2020
    What operating systems and platforms are supported to install jump server?
    Viewed 4223 times since Wed, Jun 14, 2017
    Why is ezeelogin the most secure gateway?
    Viewed 1889 times since Mon, Aug 21, 2017
    Enable Custom Server fields for Ezeelogin Users from database
    Viewed 133 times since Fri, Jan 1, 2021
    How to list and generate reports with User Name, Last Login Date and Usergroups of the user?
    Viewed 17 times since Wed, Feb 24, 2021
    How to install node using npm and n module?
    Viewed 428 times since Mon, Sep 28, 2020
    MariaDB Connector Vulnerability CVE-2020-13249
    Viewed 368 times since Wed, Jun 17, 2020
    Install slave / secondary node for high availability in jump server
    Viewed 4804 times since Wed, Jun 14, 2017
    Can the software be compromised?
    Viewed 1737 times since Mon, Aug 21, 2017