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
    How to set user password lifetime for expiry
    Viewed 126 times since Wed, Apr 15, 2020
    Upgrade Ezeelogin Jump server to the latest version
    Viewed 4944 times since Thu, Aug 24, 2017
    How to secure SSH jump server / SSH bastion host / SSH gateway
    Viewed 5310 times since Thu, Jun 15, 2017
    Where do i view the changelog | Release notes for Ezeelogin jump server ?
    Viewed 2109 times since Wed, Jun 14, 2017
    Why is ezeelogin the most secure gateway?
    Viewed 1547 times since Mon, Aug 21, 2017
    How to install Ezeelogin with a standalone license ?
    Viewed 121 times since Tue, Mar 10, 2020
    Will i be locked out of my servers if my ezeelogin hosted server goes down ?
    Viewed 2588 times since Mon, Aug 21, 2017
    Do i need to install an agent on every machine or instance that I need to manage in Ezeelogin?
    Viewed 1441 times since Mon, Aug 21, 2017
    How to upgrade php to 7.2 on Centos
    Viewed 130 times since Wed, Dec 18, 2019
    How to reset mysql or Mariadb root password ?
    Viewed 42 times since Mon, Jun 1, 2020