AnsweredAssumed Answered

Activate bashUser via script on a Embedded Gaia device?

Question asked by Johannes Bachmann on Aug 7, 2018
Latest reply on Aug 27, 2018 by Günther W. Albrecht

Hi,

 

it is possible to activate the bashUser via script on a Embedded Gaia device?

I want to execute the following command in expert mode "bashUser on" via a bat-script from a Windows client.

 

I tried it with the tool "plink". With this tool, I'm able to login and execute several commands in the clish. But I have to be in expert mode to execute the "bashUser on" command.

But I have problems after using "expert" to provide the expert-password via the script.

 

On a normal Gaia appliance I can use the following (but on Embedded Gaia there is not set command for the shell):

C:\ScriptingTest\plink.exe -ssh admin@192.168.0.1 -pw vpn123 set user admin shell /bin/bash

 

Any idea how I can solve this?

 

Best regards,

Johannes

Outcomes