You probably know it but you don't need to copy and paste in you terminal, you can use pipes.
ssh myuser@myip "cat > myfile" < myfile
and use tar to stdout, untar from stdin to transfer directories. It can even be compressed while archiving or at ssh level.
or rsync over ssh.