1 hour ago · Tech · hide · 0 comments

I began testing out how I could use a new static site hosting service and in doing so, I need a way to send files to the remote host over SSH. Once your account and SSH keys have been loaded to the remote server, you can begin connecting and need a way to upload your static site content to be displayed on the web host. The sample script uses an rsync process the keeps the remote host up to date with what is stored in the local build folder. What is great is rsync natuarally supports ssh as the destination in the sync process, but I am not always on my Linux machine and sometimes using a Windows host. Since rsync is not on Windows you have to use a few other tools. It was only a few years ago when PowerShell and Windows began supporting an SSH client from the terminal. Along with SSH, we have scp for secure file copy to a remote host. So, lets begin. scp process In general, I need to recursivley copy my dist folder (or could be _site or build depending on the static site generator) to…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.