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

2024-12-28 Win2ban 2.0.5
2024-11-25 Copssh client 8.0.0
2024-11-17 Logwot8 3.2.1
2024-11-17 Wrbldnsd 5.0.2