🗝️Authentication

You can set a password for accessing pupcloud, by using the -P or -H parameter on the commandline.

Using -P, you can specify the password in plain text. There is a more secure option, -H, using which you must provide the SHA-256 sum of the password you want to use, in (lowercase) hex format.

You can provide the whole hash, or just the first part, of any length you want to keep the commandline short. Of course, the longer the hash, the safer the system.

# Password is "ciao", with 128 bit of strength (truncated at 16 bytes)
pupcloud -r /my/dir -P b133a0c0e9bee3be20163d2ad31d6248

You can use this site to hash the password, it doesn't send the password on the net (at least at the time I am writing, you may want to check).

The password is sent in clear text over the net, so always use a HTTPS-capable reverse proxy if you plan to serve over the public internet.

Last updated