DEXTER_STARK wrote: ↑
Fri Jan 17, 2020 9:55 am
Can you please explain a little more . i think the ssh way can only work if you're and the raspebrry pi connected to the same network.
I'm not an expert but I would expect ssh (and scp) to work to any host that you can address (can ping) that has ssh enabled. There must not be a firewall blocking port 22 of course.
By the way, this includes your own Pi (localhost) so you can practice on that!
scp is useful for copying files around and has syntax similar to the usual "cp" command so its nicer (and more secure) than FTP.
scp file pi@host:
copies "file" to the home directory for user pi on host.
The password thing is called public/private key authentication. It is far more secure than simple user text passwords and once set up with "ssh-copy-id pi@host" you no longer have to provide a password every time you ssh or scp.
You enable ssh in raspi-config, or for the first connection to a headless Pi, place a file called ssh in the FAT32 boot partition.
For GUI access to the desktop, use VNC as noted above.