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 May 7

Personal and Professional Growth Through Constructive Feedback

If you are constantly questioning yourself about your personal and professional growth that means you are already off to a great start!

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