Creating shake hand between servers using SSH public keys.
Use the below method to generate Public
keys:
On source host server:
Goto to user directory
cd ~
mkdir .ssh
chmod 700 .ssh
cd .ssh
Execute the below command
cat id_rsa.pub
copy contents of id_rsa.pub (file)
On destination host server:
Goto to user directory
cd ~
mkdir
.ssh
chmod 700 .ssh
cd .ssh
vi authorized_keys
chmod 600 authorized_keys --(don’t miss this permission, this should be and must
be 600)
After completion of above steps execute below command from destination host:
ssh xyz.alpha.com
Till Next time..:)
No comments:
Post a Comment