1.
Suppose I have Two machines A and B. I want to
ssh from A to B. So login into machine A and run this command.
ssh-keygen
Follow the instructions. Don,t enter pass phrase just leave it blank.
2.
Now copy the file rsa.pub to machine B
ssh-copy-id –i /root/.ssh/id_rsa.pub root@ip
3.
Now ssh A to B you will not prompt for password.
0 comments:
Post a Comment
Note: only a member of this blog may post a comment.