Publishing with Hugo and ncftpput

github logo ・1 min read

Hi, currently I am using Hugo to write some small 'articles' on my page. Since I am using a webhoster which wants to much money for SSH access at the moment, I came up with using ncftpput to upload my files.

Changing something on my page and uploading the files with ncftpput gives me a nice one-liner

hugo && ncftpput -u username -p password servername remotepath localpath

but I don't like writing my password as plaintext in my terminal.
Does anybody here know how to store my password in a more secure way and have ncftpput read it out?

thanks in advance
ylhn15

twitter logo DISCUSS
Classic DEV Post from Jun 1

What the heck is a Developer Advocate?

ylhn15 profile image
Currently Masters student for Information Technology in Germany. Hobby photograph and watchcollector.

Sore eyes?

dev.to now has dark mode.

Go to the "misc" section of your settings and select night theme ❤️

(There is also a pink mode)