ITMan Documents

This Weblog Just Created For Document Sysadmin Challenges

SSH Key

Add SSH Public Key For Passwordless Authentication

#on remote client
cd 
ssh-keygen
#answer some question
#on local server
#copy id_rsa.pub file in server ~/.ssh/authorized_key file
chmod 755 ~/.ssh
chmod 644 .ssh/authorized_key

#alternative way
#after ssh-keygen use following command
ssh-copy-id <user>@<server_ip/hostname>

#now using ssh passwordless authentication
Last updated on 26 Oct 2019
Published on 23 Nov 2018