1. First create and public key and private key pair using
ssh-keygen -t dsa
2. Then copy the file to every machine you want to ssh without specifying password
scp ~/.ssh/id_dsa.pub user@remote_machine:~user/.ssh/authorized_keys
Easy huh
Also now you can executing command without logging into the system. just do
ssh user@remote_machine “REPLACE THIS WITH ACTUAL COMMAND”






