On Thu, Nov 01, 2018 at 02:24:35PM +0000, Jonathan McDowell wrote:
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.
Would this actually work? Where would sz on the server send the file to (as in machine address)? ... or does it (god forbid!) capture it as a zmodem stream sent to the terminal screen (on thinking about it this is the most likely answer).