diff options
author | guyav <guyaviv0@walla.com> | 2017-03-27 10:19:01 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2017-03-27 10:19:01 +0300 |
commit | a0849ac05329f4c371d52a2d9fad71db4db53740 (patch) | |
tree | 1a8fc3c61e51e1e1829525cbc724e0f3ec57c32b /include/helper_system_remote_scan | |
parent | 2b1443749494521c8758d5f6245eb7921a8f6879 (diff) |
Added quote marks on SSH commands (#372)
Added quote marks for the SSH commands in steps and 6.
Diffstat (limited to 'include/helper_system_remote_scan')
-rw-r--r-- | include/helper_system_remote_scan | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/helper_system_remote_scan b/include/helper_system_remote_scan index 9f347bf8..4cca7f70 100644 --- a/include/helper_system_remote_scan +++ b/include/helper_system_remote_scan @@ -70,14 +70,14 @@ #if [ $? -gt 1 ]; then echo "Could not perform remote audit"; ExitFatal; fi echo " ${BLUE}* ${WHITE}Step 4${NORMAL}: ${CYAN}Clean up directory${NORMAL}" - printf "%s\n\n" " ssh ${REMOTE_TARGET} rm -rf ~/tmp-lynis" + printf "%s\n\n" " ssh ${REMOTE_TARGET} \"rm -rf ~/tmp-lynis\"" echo " ${BLUE}* ${WHITE}Step 5${NORMAL}: ${CYAN}Retrieve log and report${NORMAL}" printf "%s\n" " scp -q ${REMOTE_TARGET}:/tmp/lynis.log ./files/${REMOTE_TARGET}-lynis.log" printf "%s\n\n" " scp -q ${REMOTE_TARGET}:/tmp/lynis-report.dat ./files/${REMOTE_TARGET}-lynis-report.dat" echo " ${BLUE}* ${WHITE}Step 6${NORMAL}: ${CYAN}Clean up tmp files (when using non-privileged account)${NORMAL}" - printf "%s\n\n" " ssh ${REMOTE_TARGET} rm /tmp/lynis.log /tmp/lynis-report.dat" + printf "%s\n\n" " ssh ${REMOTE_TARGET} \"rm /tmp/lynis.log /tmp/lynis-report.dat\"" # No more Lynis output QUIET=1 |