Skip to content
Discussion options

You must be logged in to vote

At least in the default configuratrion, the very first cockpit login has to happen via some auth mechanism that browsers understand: user/password, certificate/smartcard , or Kerberos. Browsers don't speak SSH, so it's not generally possible to directly do what you wnat.

What you can do in your case is to set up a "bastion host" -- some unprivileged VM or container with user/password which gives you an initial Cockpit session from where you connect to "real" machines via SSH, see https://cockpit-project.org/guide/latest/authentication.html#secondary-auth. The cockpit/ws container can also be configured to receive a specific ssh private key and then use the login page password to decrypt i…

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
8 replies
@Mugane
Comment options

@martinpitt
Comment options

@Mugane
Comment options

@eluinstra
Comment options

@Mugane
Comment options

Answer selected by martinpitt
Comment options

You must be logged in to vote
3 replies
@Mugane
Comment options

@mac2net
Comment options

@Mugane
Comment options

Comment options

You must be logged in to vote
1 reply
@jo-bitsch
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
5 participants
Converted from issue

This discussion was converted from issue #20217 on March 24, 2024 08:16.