Monday, July 22, 2019

How to configure SSH Key Gen based authentication


  How to configure SSH Key Gen based authentication
Ans.-1 => Follow these step for password and passphrese less authentication
#ssh-keygen ( This command will generate a pair off key inside ~/.ssh/id_rsa and ~/.id_rsa.pub
2=> Copy ssh id to remote host.
#ssh-copy-id -i ~/.ssh/id_rsa_pub root@192.168.0.51


3=>
#ssh-agent bash
#ssh-add
#ssh-add -l => This command is used to show ssh agent key list

No comments:

Post a Comment

Linux server hardening | Secure Linux Servers

 Linux server hardening is the process of securing a Linux server by reducing its attack surface and mitigating security risks. The goal is ...