Access from host-A to host-B without authentication
Step 1:
Login as a root user in host B
Run this command
#ssh-keygen -t rsa
It will create id_rsa and id_rsa.pub files.
We have to copy the content id_rsa.pub file.
Step 2:
Login host-A as root user
#cd .ssh
#vim authorized_keys
Past the content of host-B id_rsa.pub in authorized_keys
Save and exit.
Login from host-A to host-B
First time it will ask accept yes the key
Login from host-A
ssh root@host-B
It will login without any authendication.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.