Basic authentication
Use basic authentication
You can use basic authentication with -b to secure the web server. The format is -b user:password, where user can be empty like -b :password.
Connection without authentication:
Connection with authentication:
Info
It is recommended to generate and use a hashed password using goshs -H to generate the hash and running goshs -b 'test:$2a$14$zQCKs8RTPVQEBKKvzDgrAur9DJ4MZ0hLYNjPymg3.RB8T8C/xIqpG' to start goshs with basic auth. Make sure to enclose the argument in single quotes to prevent the command breaking because of the $ signs in the password hash.