Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Username as Environment Variable with ssh #1159

Open
BlueCase opened this issue Dec 4, 2024 · 0 comments
Open

Username as Environment Variable with ssh #1159

BlueCase opened this issue Dec 4, 2024 · 0 comments

Comments

@BlueCase
Copy link

BlueCase commented Dec 4, 2024

Currently I testing warpgate if it fulfill my needs.

Question:
On my target systems the the same users could have different usernames.
In the current implementation I can only set a general user for a target or none to use the warpgate username.
But I have the requirement, that the session on the target system have to be with personal user account in the environment.

So, my idea was now to provide the warpgate username by an environment variable which I allow over AcceptEnv in the sshd_config.
The first login step is with a technical jumpuser on the target system and a forced command.
The forced command make the matching between warpgate user <> system user and automatically do a userswitch.
A bit dirty I know but should work. Already testet it by manually set the env with -o "SetEnv FOO=bar"

More advanced would be if I could already create a matching between warpgate user, target username and target system directly in warpgate.

What do you think?
Would something like this possible?

@BlueCase BlueCase changed the title Username as Environment Variable Username as Environment Variable with ssh Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants