Back to top

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 news

2025-03-09 Nagwin 5.7.0
2025-03-09 Wlighttpd 1.4.1
2025-02-26 itmux 1.0.2
2025-02-23 iwget2 1.1.0