Secure rsync transfer from Linux to cwRsync-/Copssh server

Demonstrates public key based secure rsync transfer from Linux to cwRsync-/Copssh server.

Copy of cwrsync.sh used in the video: 

#!/bin/bash
localport=9119
remoteport=873
remotehost=192.168.100.21
rsyncmodule=test
remoteuser=lab1user
sourcedir=/bin/

echo Establishing secure channel ...
ssh -L $localport:127.0.0.1:$remoteport $remoteuser@$remotehost -T -N -f

rsync -vrt $sourcedir rsync://localhost:$localport/$rsyncmodule

echo Terminating secure channel ...
ps ax | grep "ssh -L $localport" | awk '{print $1}' | xargs -i kill {} 2&>/dev/null

Release announcements