a guest Jun 20th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. backupsrv$ ssh -A -M -f -N -T -R 0: -O forward dmzmachine
  2. Allocated port 20545 for remote forward to
  3. backupsrv$ ssh dmzmachine "tar -cvzf - /path | ssh -p 20545 'tar -xzpf - -C /dest'"
  4. backupsrv$ ssh -O exit dmzmachine
  6. backupsrv$ mkfifo fromssh tossh
  7. backupsrv$ ssh <fromssh >tossh -T -y dmzserver "ssh -y -N -T -MS/tmp/ctl
  8. -oProxyCommand=- backupsrv" &
  9. backupsrv$ /usr/sbin/sshd -i -f < $fromssh > $tossh
  10. backupsrv$ ssh dmzserver "tar -cvzf - /path | ssh -S /tmp/ctl backupsrv 'tar -xzpf - -C /dest'"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand