Using sshpass tool as a workaround for ssh interactive password prompt. :-)
mkdir tmpz
cd tmpz
wget --output-document=sshpass.tgz "http://downloads.sourceforge.net/project/sshpass/sshpass/1.05/sshpass-1.05.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fsshpass%2Ffiles%2Fsshpass%2F&ts=1380045506&use_mirror=freefr"
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