How to automate password entry?

后端 未结 5 2244
攒了一身酷
攒了一身酷 2020-12-16 06:46

I want to install a software library (SWIG) on a list of computers (Jenkins nodes). I\'m using the following script to automate this somewhat:

NODES=\"10.8.2         


        
5条回答
  •  时光说笑
    2020-12-16 07:18

    With SSH the right way to do it is to use keys instead.

    # ssh-keygen
    

    and then copy the *~/.ssh/id_rsa.pub* file to the remote machine (root@$node) into the remote user's .ssh/authorized_keys file.

提交回复
热议问题