And my personal favourite:
$ cat << EOF > blog-post-n.html
<html>
<body>
My post here
</body>
</html>
EOF
$ scp blog-post-n.html myserver:public_html