Skip to content

Changing authentication


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 Cloud provider security groups or firewall only allows access from authorized IP addresses.

From the Web UI

Version badge

It is possible to change the authentication credentials, or disable it altogether, from the instance web UI:

  1. Go to the Configuration panel:

    Configuration screenshot

  2. In the Authentication box, you can change username, password or even disable authentication if needed:

    Authentication screenshot

  3. Click APPLY to apply

By Command line

  1. Connect the instance to ADB
  2. Change username:

    adb shell "setprop persist.webrtcd.username \$(echo -n "new_username" | sha1sum | cut -d \" \" -f1)"
  3. Change password:

    adb shell "setprop persist.webrtcd.password \$(echo -n "new_password" | sha1sum | cut -d \" \" -f1)"

To Disable authentication:

adb shell "setprop persist.webrtcd.authent off"
  1. Connect to the instance with SSH
  2. Switch to root:

  3. Change username:

    setprop persist.webrtcd.username \$(echo -n "new_username" | sha1sum | cut -d \" \" -f1)
  4. Change password:

    setprop persist.webrtcd.password \$(echo -n "new_password" | sha1sum | cut -d \" \" -f1)

With a script

To automate the process, you can use a script like the following one:

ssh -i key.pem [email protected]{instance_ip} 'su -c \
"setprop persist.webrtcd.username \$(echo -n "new_username" | sha1sum | cut -d \" \" -f1);\
setprop persist.webrtcd.password \$(echo -n "new_password" | sha1sum | cut -d \" \" -f1)"'

To disable authentication:

setprop persist.webrtcd.authent off

With User data parameters

See Automate instance parameters

Back to top