DNAC Bash shell access

Change from maglev til bash shell

Procedure


Step 1

Enter the following CLI command to determine your shell type:

$ magctl ssh shell display
The command returns one of the following outputs, depending on your shell:

$ magctl ssh shell display
Active shell for current user: bash 

$ magctl ssh shell display
Active shell for current user: magshell

The _shell commands work only when you are in magshell.

Step 2

If the preceding command output confirms that you are in magshell, and you then want to disable restricted shell, enter the following CLI command and password:

$ _shell -c 'sudo magctl ssh shell bash'
Password:
Warning! Activity within this shell can jeopardize the functioning of the system!
[sudo] password for maglev:
Successfully enabled bash for user, will be effective from next login.
Step 3

For the change to take effect, exit from the CLI session and then log back in to the CLI session.

Step 4

(Optional) To re-enable restricted shell, enter the following CLI command and password:

$ sudo magctl ssh shell magshell
[sudo] password for maglev:
Successfully enabled magshell for user, will be effective from next login.
Step 5

For the change to take effect, exit from the CLI session and then log back in to the CLI session.

2 thoughts on “DNAC Bash shell access

Skriv et svar