Use the scp command that uses ssh underneath for copying to/from servers.
scp myfile.txt server.host:./path/on/server/myfile.txtscp server.host:./path/on/server/myfile.txt .scp -r mydir server.host:./path/on/server/mydirscp -r server.host:./path/on/server/mydir .