From: Holger Levsen Date: Thu, 7 Mar 2013 12:04:59 +0000 (+0100) Subject: use ssh/scp correctly X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=bbfbaeb379dfd47ad2e748daac29fae3a16e9ee7;p=profitbricks%2Fjenkins-build-scripts.git use ssh/scp correctly --- diff --git a/liveboot_pserver1301_deploy.sh b/liveboot_pserver1301_deploy.sh index 23dce75..36847fe 100755 --- a/liveboot_pserver1301_deploy.sh +++ b/liveboot_pserver1301_deploy.sh @@ -127,10 +127,10 @@ echo "jenkins ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/jenkins chmod 440 /etc/sudoers.d/jenkins chown root:root /etc/sudoers.d/jenkins EOF -scp -t $TMPFILE root@$TESTSERVER:/tmp/ -ssh -t root@$TESTSERVER $TMPFILE +scp -i ~/.ssh/id_ritest $TMPFILE root@$TESTSERVER:/tmp/ +ssh -i ~/.ssh/id_ritest -t root@$TESTSERVER bash $TMPFILE rm $TMPFILE -ssh -t jenkins@$TESTSERVER sudo id +ssh -i ~/.ssh/id_ritest -t jenkins@$TESTSERVER sudo id # # finish