0 vote
Hi,
we have a strange requirement and i hope you can help me.
Finally Linux server Admins also like RDM :-)
The Problem is, that our concept for administrative SSH-Session is as follows:
su -<root-password>
now the first connection works fine via our integration into secretserver. What we now need i :
get the root password from secretserver and use it as an "After Login Command" as <root-password>
I know we can use a normal Variable Field here (and for a Proof of concept we do exactly this: Enter the password into $COMPANY_CUSTOM_FIELD1$ and us it in the "After Login Command"su -$COMPANY_CUSTOM_FIELD1$
But i would like to fetch the Password from Secretserver with the standard methods and use it here.
Thank you
Peter
edited by Peter Cermak (POI) on 7/9/2013
Hi,
For now I don't have a simple solution. I will need a little of time to think about it. Perhaps by mixing a Macro/Script/Tool with a Secret Server credential entry.
David Hervieux
Hi,
I would also like to know how to implement an Auto "sudo -i" using a credential repository.
Thanks,
Joe
Have you tried the macro script tools?
David Hervieux
Hi,
Can you supply:
1. macro script tools <-- Documentation
2. macro script tools <-- Download
Thanks,
Joe
Hi there,
i've the same question - I want a simple "sudo -s" command after login to a ssh session and then I want the password which is specified for the host to be entered.
At the moment I've done sth like:
But how do I get the password from the host? Is there a variable which can be used or sth. like that?
Or what is the best way to handle this atm?
Kind regards,
Constantin
Hello Constantin.
Thank you for contacting us on that matter!
In that case, I would recommend the use of the $HOST$ variable in your command which will return the host if available. To see the different variables that you can use, please click on the "Variables" button found at the bottom left corner of the configuration window of your entry:
Best regards,
James Lafleur