Skip to content

Commit

Permalink
remove potential SSH security issue
Browse files Browse the repository at this point in the history
… by removing the hard coded SSH option to bypass `StrictHostKeyChecking` and the `UserKnownHostsFile`.

Closes laurent22#104
  • Loading branch information
thomas-mc-work committed Jul 24, 2018
1 parent ae564af commit 6b62225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rsync_tmbackup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ while : ; do

CMD="rsync"
if [ -n "$SSH_CMD" ]; then
CMD="$CMD -e 'ssh -p $SSH_PORT -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'"
CMD="$CMD -e 'ssh -p $SSH_PORT'"
fi
CMD="$CMD $RSYNC_FLAGS"
CMD="$CMD --log-file '$LOG_FILE'"
Expand Down

0 comments on commit 6b62225

Please sign in to comment.