On Thu, Nov 01, 2018 at 09:43:21AM +0000, John Cohen wrote:
Hi Chris,
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).
Could scp not help you here? (sorry if I didn't quite understand!)
No, for two reasons:-
You'd have to enter a password on the server to copy a file to the client - not possible in an automatically run script.
The client can't be 'seen' by the server (when connecting from 'out there on the internet' anyway) so there's nowhere (DNS'wise) to send the file to.