On Wed, Oct 31, 2018 at 06:56:50PM +0000, Chris Green wrote:
I am looking for a way that will allow my ssh 'server' machine (desktop running xubuntu 18.04 at home) to send a file back to the client machine (laptop running xubuntu 18.04 which may be anywhere including behind a firewall etc. and behind NAT).
I need the server machine to be able to do this from a script running on the server at some indeterminate time after the ssh connection has been made.
...
Does anyone have any ideas which might help?
If the script is running on a terminal then run screen on the laptop, use sz on the server and screen's zmodem catch support to automatically receive things.
J.
(You didn't ask for a *good* way, or a non-evil way...)