Set passwordless SSH from A to B:
- Run
ssh-keygeninto the machine you want to ssh from(A) cdinto~/.ssh- make a directory if not exist in the machine you want to ssh to(B) -->
mkdir ~/.ssh/ cp id_rsa.pub USER@IP_OF_B:~/.ssh/authorized_keysThe above line will copy id_rsa.pub, into the machine you want to ssh to(B), in the directory ~/.ssh/authorized_keys