Connecting to a Target using a Second Account
To connect to a target using a separate account:
-
Navigate to an SSH secret (e.g. Account1), that has the Launchers section and a PuTTY launcher available.
-
Specify another secret (e.g Account2) as the Connect As secret that you wish to connect as in the PuTTY Launcher.
-
Click the Launch button, and "Account2" logs in.
-
Secret Server will run this command as "Account2" automatically:
su - Account1 -
The SSH session will prompt for a password, which Secret Server will also populate automatically.
"Account2" then becomes "Account1" and from that point on you are logged in as "Account1".