Audience
This guide is for administrators who manage Genymotion PAAS instances.
Changing authentication
Authentication is the process of verifying a user's identity to control access.
Disabling authentication makes the instance accessible 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.
The instance web UI can be used to change authentication credentials or disable authentication.
Web UI
Open the Configuration panel in the Web UI.
In the Authentication box, you can change username, password or disable authentication if needed.
Click APPLY to apply the changes.
ADB
Connect the instance to ADB.
To change username and/or password, run 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)"
Or, to disable authentication:
adb shell "setprop persist.webrtcd.authent off"
SSH
Connect to the instance with SSH and switch to root:
$ su
Then, to change username and/or password, run:
setprop persist.webrtcd.username \$(echo -n "new_username" | sha1sum | cut -d "\" \" -f1)
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:
#!/bin/bash
ssh -i key.pem user@{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)"'
Or, to disable authentication:
setprop persist.webrtcd.authent off
See Automate instance parameters.