Now, I have two SuSe11SP3 VM. I want to ssh another VM without password. Because I often use scp
to copy files between the two VMs. But the password is too long, I don’t want to change password. I know maybe I can use publickey, my question is how can I achieve by using script.
Advertisement
Answer
As General said, you could use ssh-keygen
to create a pair of keys without password and copy .pub
key to another VM’s ~/.ssh/authorized_keys