]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
use ssh/scp correctly
authorHolger Levsen <holger@layer-acht.org>
Thu, 7 Mar 2013 12:04:59 +0000 (13:04 +0100)
committerHolger Levsen <holger@layer-acht.org>
Thu, 7 Mar 2013 12:04:59 +0000 (13:04 +0100)
liveboot_pserver1301_deploy.sh

index 23dce750cc61dbf1ecf9510cfc29a95a5425bea7..36847fe0968ccc114c5b34545f78d0922ff03cdc 100755 (executable)
@@ -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