Tuesday, September 24, 2013

A strange way to populate SSH keys from Jenkins to Jenkins Slave node

Using sshpass tool as a workaround for ssh interactive password prompt. :-)


mkdir tmpz
cd tmpz
tar -zxvf sshpass.tgz

cd sshpass-1.05
./configure
make
./sshpass -p "hudson"  ssh-copy-id -i ~/.ssh/id_rsa.pub hudson@10.116.65.165

No comments:

Post a Comment