Authenticate clients with the Multipass service¶
See also:
authenticate
, local.passphrase, Service
Multipass requires clients to be authenticated with the service before allowing commands to complete.
Setting the passphrase¶
The administrator needs to set a passphrase for clients to authenticate with the Multipass service. The client setting the passphrase will need to already be authenticated.
There are two ways to proceed:
Set the passphrase with an echoless interactive entry, where the passphrase is hidden from view:
multipass set local.passphrase
The system will then prompt you to enter a passphrase:
Please enter passphrase: Please re-enter passphrase:
Set the passphrase in the command line, where the passphrase is visible:
multipass set local.passphrase=foo
Authenticating the client¶
A client that is not authorised to connect to the Multipass service will fail when running multipass
commands. An error will be displayed when this happens.
For example, if you try running the multipass list
command:
list failed: The client is not authenticated with the Multipass service.
Please use 'multipass authenticate' before proceeding.
At this time, the client will need to provide the previously set passphrase. This can be accomplished in two ways:
Authenticate with an echoless interactive entry, where the passphrase is hidden from view:
multipass authenticate
The system will prompt you to enter the passphrase:
Please enter passphrase:
Authenticate in the command line, where the passphrase is visible:
multipass authenticate foo
Troubleshooting¶
Here you can find solutions and workarounds for common issues that may arise.