You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test -n "$STUDENT_IP"|| fail "The IP address of the machine to check must be provided to this script as the first argument"
10
+
test -n "$STUDENT_USER"|| fail "The username of the account to connect as must be provided to this script as the second argument"
11
+
12
+
scp -i id_rsa scripts/listen-server-ports.sh ${STUDENT_USER}@$STUDENT_IP:/home/${STUDENT_USER}/listen-server-ports.sh || fail "Could not copy listen-server-ports.sh script to server"
13
+
ssh -i id_rsa ${STUDENT_USER}@$STUDENT_IP chmod 755 /home/${STUDENT_USER}/listen-server-ports.sh || fail "Could not set permissions of listen-server-ports.sh script on server"
14
+
ssh -i id_rsa ${STUDENT_USER}@$STUDENT_IP"sudo nohup /home/${STUDENT_USER}/listen-server-ports.sh &>/dev/null < /dev/null &"|| fail "Could not execute listen-server-ports.sh script on server"
0 commit comments