In one of my previous posts I wrote about installing hugo.

Of course, unless you want to keep your posts only private, you will need to publish your blog somewhere. Hugo’s website provides a few options for hosting and deployment of your blog. Since I already run an Apache web server on a virtual machine on Linode, I decided to simply deploy my blog using scp. BTW, I highly recommend Linode as your cloud provider. You can run your VMs, containers, etc for as low as 5 bucks per month. If you use my referral link, you will get 100$ credits to try and play around with.

Deploying you blog via scp

First you will need to generate static web pages by navigating to your blog directory and issuing hugo command.

You will then find your static pages inside the public directory. So in order to copy simply type:

scp -r public/* username@server:/path/to/your/public_html/

Enter your credentials and you are done!

P.S. Use apt-get install scp if you don’t have it already.