From bbfbaeb379dfd47ad2e748daac29fae3a16e9ee7 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 7 Mar 2013 13:04:59 +0100 Subject: [PATCH] use ssh/scp correctly --- liveboot_pserver1301_deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5