Skip to content

Technology evangelist

share and learn

Month: May 2015

Posted in Linux, Security

Configure SSH key based authentication on rhel 7/centos 7

Posted on May 31, 2015December 16, 2016 by Vishwanath Mule

In this post I am going to show you how to configure SSH key based authentication on rhel7/centos7. Configuration of SSH key based authentication is little different in rhel7 compared to traditional method of manually copying public key to another server. Users can login using ssh with password and authenticate using public key authentication.

On every server we have two keys private and public. Private key is used as authentication credentials like password which must be kept secret and secure. Public key we need to copy on the server where user want to login and used to verify private key so public key does not need to be secret.

How authentication happens in SSH key key based authentication. SSH server that has public key can issue a challenge that can only be answered by system who is holding private key as a result user can authenticate without password only with the help of public key and system grant login access to the user.

Use ssh-keygen command to generate private and public key as follows

1

Continue reading “Configure SSH key based authentication on rhel 7/centos 7” →

Advertisement

Recent Posts

  • Multi-node Kubernetes setup on Windows
  • Quick Steps to build your own lab using VirtualBox and Vagrant
  • Timeout Error while Gathering Facts using Ansible Playbook

Enter your email address to follow this blog and receive notifications of new posts by email.

Categories

  • Ansible
  • Cloud
  • Kubernetes
  • Linux
  • network
  • Openstack
  • Security
  • Uncategorized

Follow me on Twitter

My Tweets

Archives

  • August 2020 (1)
  • December 2019 (2)
  • May 2019 (1)
  • June 2018 (3)
  • November 2016 (1)
  • May 2016 (2)
  • April 2016 (1)
  • March 2016 (2)
  • February 2016 (2)
  • January 2016 (2)
  • December 2015 (2)
  • November 2015 (1)
  • June 2015 (2)
  • May 2015 (1)
  • March 2015 (1)
  • February 2015 (2)
  • December 2014 (2)
Create a website or blog at WordPress.com
  • Follow Following
    • Technology evangelist
    • Join 40 other followers
    • Already have a WordPress.com account? Log in now.
    • Technology evangelist
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...