I have two Raspberry Pis, one a 3 running Raspbian Stretch, the other a 4 running Raspbian Bullseye, both headless.
I have need to transfer files from the 3 to the 4 (always in that direction) over the network (copying to/from USB is not ideal).
How would I go about copying files via CLI from one Pi to the other? To start with / to test it'll just be one at a time specified via the command line. It doesn't matter to me whether it's pushed from the 3 or pulled from the 4.
I connect to them both via SSH using Putty from my Windows PC