New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oscap-ssh - remote oval and xccdf evaluation #69

merged 21 commits into from Apr 30, 2015
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings


Just for now

Viewing a subset of changes. View all

Use -O exit instead of just exit when closing the ssh master socket

  • Loading branch information...
mpreisler committed Apr 29, 2015
commit 8dbf2d99edd2308ee36b5b11e3e3b43df42cdb9b
@@ -226,7 +226,7 @@ fi
echo "Removing remote temporary directory..."
ssh -o ControlPath=$MASTER_SOCKET -p "$SSH_PORT" "$SSH_HOST" "rm -r $REMOTE_TEMP_DIR" || die "Failed to remove remote temporary directory!"
echo "Disconnecting ssh and removing master ssh socket directory..."
ssh -o ControlPath=$MASTER_SOCKET -p "$SSH_PORT" "$SSH_HOST" "exit" || die "Failed to disconnect!"
ssh -o ControlPath=$MASTER_SOCKET -p "$SSH_PORT" "$SSH_HOST" -O exit || die "Failed to disconnect!"
rm -r "$MASTER_SOCKET_DIR" || die "Failed to remove local master SSH socket directory!"
ProTip! Use n and p to navigate between commits in a pull request.