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 3114 times since Mon, Aug 21, 2017
    How to install Ezeelogin with a standalone license ?
    Viewed 549 times since Tue, Mar 10, 2020
    How to export servers ?
    Viewed 4288 times since Sat, Sep 2, 2017
    How to get detailed logs from Ezeelogin error logs?
    Viewed 184 times since Mon, Nov 16, 2020
    How to set user password lifetime for expiry
    Viewed 439 times since Wed, Apr 15, 2020
    How to prevent putty window from closing during ssh
    Viewed 791 times since Wed, Apr 22, 2020
    How to install node using npm and n module?
    Viewed 426 times since Mon, Sep 28, 2020
    Enable Custom Server fields for Ezeelogin Users from database
    Viewed 132 times since Fri, Jan 1, 2021
    Is the software upgrade seamless from free to paid? Do i have to reinstall?
    Viewed 1777 times since Mon, Aug 21, 2017