cisco — Accessing Guest Shell Through the Management Port

Enabling and Running the Guest Shell The guestshell enable command installs Guest Shell. This command is also used to reactivate Guest Shell, if it is disabled. When Guest Shell is enabled and the system is reloaded, Guest Shell remains enabled. IOx must be configured before the guestshell enable command is used. Note The guestshell run bash command opens the Guest Shell bash prompt. Guest Shell must already be enabled for this command to work. Note If the following message is displayed on the console, it means that IOx is not enabled; check the output of the show iox-service command to view the status of IOx.

The process for the command is not responding or is otherwise unavailable For more information on how to enable Guest Shell, see the "Configuring the AppGigabitEthernet Interface for Guest Shell" and "Enabling Guest Shell on the Management Interface" sections. Disabling and Destroying the Guest Shell The guestshell disable command shuts down and disables Guest Shell. When Guest Shell is disabled and the system is reloaded, Guest Shell remains disabled. The guestshell destroy command removes the rootfs from the flash filesystem. All files, data, installed Linux applications and custom Python tools and utilities are deleted, and are not recoverable.

Accessing Guest Shell on a Device Network administrators can use Cisco IOS commands to manage files and utilities in the Guest Shell. During the Guest Shell installation, SSH access is setup with a key-based authentication. The access to the Guest Shell is restricted to the user with the highest privilege (15) in Cisco IOS. This user is granted access into the Linux container as the guestshell Linux user, who is a sudoer, and can perform all root operations. Commands executed through the Guest Shell are executed with the same privilege that a user has when logged into the Cisco IOS terminal. At the Guest Shell prompt, you can execute standard Linux commands.

Accessing Guest Shell Through the Management Port By default, Guest Shell allows applications to access the management network. Users cannot change the management VRF networking configurations from inside the Guest Shell. For platforms without a management port, a VirtualPortGroup can be associated with Guest Shell in the Cisco IOS configuration. For more information, see the Sample VirtualPortGroup Configuration section. Note Guest Shell Enabling and Running the Guest Shell Guest Shell 5