RobustOS Pro Adding Development Users Guide

RobustOS Pro Adding Development Users Guide

Overview

When accessing devices via SSH using the default administrator user (admin) in the RobustOS Pro system, you are not in a standard shell environment and can only execute a limited set of commands. If you need to develop your own applications on the RobustOS Pro system, you first need to add users with access to a standard shell environment and sudo privileges, which are called sudo users in RobustOS Pro.  This guide explains how to add a sudo user in User Management, enable SSH and connect with the new credentials. The key conclusion is that development access should use a separate sudo account rather than treating the Web UI admin as a Linux root user.

Adding Sudo Users

Follow these steps to add a sudo user:

  1. Log in to the Web management page, and go to the "System" - "User Management" page through the sidebar menu.

  1. On the Sudo User tab of the User Management page, click the + icon.

  1. Enter the username and password to add in the pop-up window. Click the ? icon to view the input requirements for the username and password.

After entering your username and password, click the "Submit" button. The window will close automatically if the input is correct.

  1. After the sudo user is added successfully, it will be displayed on the Web interface. Click the ☑ icon in the upper right corner of the page to save the configuration and successfully add the sudo user.

A sudo user can only be added through the Web page. If you need to add multiple users, you can log in to the device as a sudo user and use Linux commands to add more.

Login SSH

  1. Ensure the SSH service of the RobustOS Pro system is started. Open the SSH service page via the sidebar menu "Services" - "SSH", and make sure "Enable" in SSH Settings is ON.

  1. Log in to the gateway using the command line or SSH tool
ssh sudouser@192.168.0.1

If a warning about a remote host fingerprint change appears (this may happen when connecting to multiple devices), you need to delete the previous host fingerprint record.

You can log in again after running the following command to delete the host fingerprint record.

ssh-keygen -R 192.168.0.1

Conclusion

A Robustel gateway running RobustOS Pro is correctly configured for creating a sudo development user for SSH when the new user can log in over SSH and execute an authorized sudo command. This confirms that the development account has the required shell and privilege level.