Spaces:
Runtime error
Runtime error
Alysha Creelman
commited on
Adding the ssh agent model_building.sh
Browse files- model_building.sh +4 -0
model_building.sh
CHANGED
|
@@ -6,6 +6,10 @@ MACHINE=paffenroth-23.dyn.wpi.edu
|
|
| 6 |
# check that the code in installed and start up the product
|
| 7 |
COMMAND="ssh -i group_key -p ${PORT} -o StrictHostKeyChecking=no student-admin@${MACHINE}"
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
${COMMAND} "ls Wormington-Scholar"
|
| 10 |
${COMMAND} "cd Wormington-Scholar"
|
| 11 |
${COMMAND} "git pull"
|
|
|
|
| 6 |
# check that the code in installed and start up the product
|
| 7 |
COMMAND="ssh -i group_key -p ${PORT} -o StrictHostKeyChecking=no student-admin@${MACHINE}"
|
| 8 |
|
| 9 |
+
# Add the key to the ssh-agent
|
| 10 |
+
eval "$(ssh-agent -s)"
|
| 11 |
+
ssh-add group_key
|
| 12 |
+
|
| 13 |
${COMMAND} "ls Wormington-Scholar"
|
| 14 |
${COMMAND} "cd Wormington-Scholar"
|
| 15 |
${COMMAND} "git pull"
|