using superuser (su) in ssh Shell with Macro

Resolved

using superuser (su) in ssh Shell with Macro

avatar

Hi,
I like to use a macro to get a root shell. Therefore i created a list with my passwords and linked this list to the ssh-Entry

forum image

In the section "security settings", I switched the Check-Box "Allow password in variable" to on

My Macro looks like this

forum image

For testing purposes I changed the macro from su {ENTER} {DELAY} $TOOL_PASSWORD$ {ENTER} to su $TOOL_PASSWORD$ $PASSWORD$

executing the macro opened the password list, where I can choose the desired entry, that results in this

forum image

So I think, the variables are empty. What can I do to solve the problem?

Greeting Detlev.

All Comments (5)

avatar

Hello,

In your SSH Shell session, under the Security Settings tab, could you check the "Allow Password in Variables" option?

Best Regards,

Etienne Lord

avatar

Hello,

this switch is already set.

Best regards Detlev

avatar

Hello,

I also notice that you have a credential entry linked to your SSH Entry, could you also ensure that the option is checked on that entry also?

Best Regards,

Etienne Lord

avatar

Hello,


great! That hint solves my problem. Thank you, now the password is in the variable TOOL_PASSWORD.
Thank you very much

But now, there is another problem

In the future we will have many entries like the sambpe entry in our database.

forum image


When I try to execute the macro, I do a right-click on the ssh Icon, choose Macro/Scripts/Tools and got this list

forum image

I think the list at (3) will be longer and longer with every new entry. How can i choose the right entry. Of course, I can change the name of the macro, but with 50 or hundert entries it would be very difficult to select the macro I need.

And is it possible to hide the entries in (1) and (2) . I don't need them at this point.

Best Regards Detlev.

avatar

Hello,

Sadly it is not possible to "Customize" this and therefore remove or add options.

Best Regards,

Etienne Lord