From linux supposing your image is called image.jpg and you keep it in Your home directory:
open terminal (usually ctrl+alt+t)
type
scp /home/image.jpg root@172.16.42.1:/root/portals/portal1
it will ask the pineapple root pass and it’s done.
if tou need to copy a whole directory same command just add -r flag after scp