Connect with su-user in SSH sessions
PreviousConfigure Yubikey multifactor authenticationNextConvert a legacy certificate entry to an x.509 credential entry
Last updated
Was this helpful?
The Unix command su, derived from substitute user, grants a user the ability to execute commands with the privileges of another user account.
In Remote Desktop Manager, open your SSH entry's Properties.
Go to Security settings and tick the Allow password in variable checkbox.
If the option is greyed out, you need to activate Allow password variables for all entries and Allow password variable in macros in Administration – System settings – Password settings. Also, note that if you are using either of the Linked (vault) or Linked (external vault) credential modes for your entry, you will need to tick the Allow password in variable box in the linked vault entry as well.
Then, head to General – Post login, and click on New (cross-shaped button).

Enter sudo su in the Macro edition window. An Expected prompt is not required because we want to execute it as soon as possible in this scenario.
Go back to General – Post login, and click on New (cross-shaped button).
Enter the variable $PASSWORD$ and [sudo] password for username: in the Expected prompt (username is used as an example).
Define a Timeout. and click OK to close the window.

The objective is to ensure the password is sent only when the timing is right with the intended sequence of actions. The terminal awaits the [sudo] password for username: prompt before sending the second command.

Last updated
Was this helpful?
Was this helpful?