> Warning: If authentication is disabled, your instance will be accessible by anyone from its public IP. If you decide to do so, make sure that your security groups or firewall only allows access from authorized sources.
From the Web UI
It is possible to change the authentication credentials, or disable it altogether, from the instance web UI.
1. Go to the Configuration panel. 2. In the Authentication box, you can change username, password, or even disable authentication if needed. 3. Click APPLY to apply.
By Command line
Connect the instance to ADB or SSH, then use the following commands:
Change username
adb
shell
"setprop persist.webrtcd.username \$(echo -n "
new_username
" | sha1sum | cut -d \" \" -f1)"
Change password
adb
shell
"setprop persist.webrtcd.password \$(echo -n "
new_password
" | sha1sum | cut -d \" \" -f1)"
Disable authentication
adb
shell
"setprop persist.webrtcd.authent off"
Switch to root
$
su
With a script
To automate the process, you can use a script like the following one.
Disable authentication (script snippet)
setprop
persist.webrtcd.authent
off
Using the User data parameters
See User Data Parameters.