More information about ssh and scp can refer this post.
This is about how to set up SSH public key authentication, after that you will not prompt to input password for ssh connection.
We need to setup ssh passwordless in softlayer cluster, otherwise our Datastage installer wouldn’t work. Now the master node in cluster uses /ibm/unicorn_rsa
as the key to ssh, we can generate a new key and utilize it to communicate.
1 | ## "yes" will overwrite existing rsa key |
Notice that:
- the
~/.ssh/authorized_keys
permission on target machine should be644
or600
and file owner should be the right user - public key authentication on target machine must be allowed
PubKeyAuthentication yes