运行时添加： -a user:pass
node /cloud9/server.js –listen 0.0.0.0 –port 80 -w /workspace -a user:pass
To set a default username and password:
Open the file /opt/cloud9/build/standalonebuild/configs/standalone.js.
Locate the following code block. (Should be at the top of the file)
At the line .default(“auth”, “:”), type in the username and password you’d like to use in the format of username:password, e.g. .default(“auth”, “user:pass”)
You should be all set! Try accessing 18.104.22.168:3000, and there should be a pop-up prompting for username and password.