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

ssh add option to specify the worker username for the ssh command #322

Closed
petersutter opened this issue Jun 22, 2023 · 5 comments · Fixed by #335
Closed

ssh add option to specify the worker username for the ssh command #322

petersutter opened this issue Jun 22, 2023 · 5 comments · Fixed by #335
Labels
component/gardenctl Gardener CLI kind/enhancement Enhancement, improvement, extension status/closed Issue is closed (either delivered or triaged)

Comments

@petersutter
Copy link
Member

What would you like to be added:
Add an option for gardenctl in order to override the username for the shoot worker. E.g. --node-username=admin

Why is this needed:
If the execute cloud config downloader script did not run through successfully, the gardener user is most likely not created and thus a login with this user will fail. In this case the user should try with the admin user as fallback.

@petersutter petersutter added component/gardenctl Gardener CLI kind/enhancement Enhancement, improvement, extension labels Jun 22, 2023
@petersutter
Copy link
Member Author

petersutter commented Jun 22, 2023

related #315

@tedteng
Copy link
Contributor

tedteng commented Jul 12, 2023

one question does the admin user only create on OpenStack as the default user?
Recently I was looking for a feasible solution on this ticket starting from GCP. I checked cat /etc/passwd don't find the admin user. and most of the existing user from os is /usr/sbin/nologin which is unable to use as ssh account. or the admin name is just a substitute in here, could be any name that we created later?

@tedteng
Copy link
Contributor

tedteng commented Jul 13, 2023

/assign

@tedteng
Copy link
Contributor

tedteng commented Jul 26, 2023

The solution I researched is using gcloud/az cli etc to ssh VM, however, it is not very applicable, and it has a lot of limitations due to permission. /unassign it.

@tedteng tedteng removed their assignment Jul 26, 2023
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Sep 11, 2023
@petersutter
Copy link
Member Author

just for the record: the newly created PR gardener/gardener#9077 should help to ensure that there is a gardener user present

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/gardenctl Gardener CLI kind/enhancement Enhancement, improvement, extension status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants