当前位置:网站首页>Multipass Chinese document - use multipass service to authorize the client

Multipass Chinese document - use multipass service to authorize the client

2022-06-26 04:41:00 But the teacher

General catalogue ( To be translated and perfected )

1. overview

2. course

3. Directions for use

   3.1 install Multipass

     3.1.1 be based on Linux

     3.1.2 be based on macOS

     3.1.3 be based on Windows

   3.2 Manage instances

     3.2.1 Create examples

     3.2.2 Modify instance

     3.2.3 Using examples

     3.2.4 Use the instance command alias

     3.2.5 Share data with instances

     3.2.6 Remove instance

   3.3 management Multipass

     3.3.1 Set the drive

     3.3.2 Use Multipass Service authorization client

     3.3.3 Remote use Multipass

     3.3.4 Improve mount performance

     3.3.5 Use Packer pack Multipass Mirror image

     3.3.6 Set image interface

     3.3.7 Use different macOS terminal

   3.4 Troubleshoot problems

     3.4.1 Connection log

     3.4.2 Network troubleshooting


How to set the driver

See also : authenticate, local.passphrase, Service

[ edition 1.9.0 And after ]

Before making the command complete , Multipass Client authorization service is required .

Content :


Set password phrase (passphrase)

Client Authorization Multipass service , The administrator is required to set the password phrase . The client that sets the password phrase needs to authorize first . Yes 2 There are three ways to set the password phrase .

Set the password phrase in the interactive input box without response and the input content is hidden :

$ multipass set local.passphrase
Please enter passphrase:
Please re-enter passphrase:

One line command is visible when setting the password phrase :

$ multipass set local.passphrase=foo

Licensing clients

Unauthorized connection to Multipass Client of service , In execution multipass Command will fail . When this happens, an error is displayed . for example :

$ multipass list
list failed: The client is not authenticated with the Multipass service.
Please use 'multipass authenticate' before proceeding.

Now , The client needs to provide the previously set password phrase . Yes 2 There are two ways to deal with .

Set the password phrase in the interactive input box without response and the input content is hidden :

$ multipass authenticate
Please enter passphrase:

One line command is visible when setting the password phrase :

$ multipass authenticate foo

If the client is unable to authorize or set the password phrase

It could be , Another authorized client first connects to Multipass port , Cause unable to set local.passphrase, I can't authorize( to grant authorization ) Client services . You may see the following :

$ multipass list
list failed: The client is not authenticated with the Multipass service.
Please use 'multipass authenticate' before proceeding.
$ multipass authenticate
Please enter passphrase: 
authenticate failed: Passphrase is not set. Please `multipass set local.passphrase` with a trusted client.
$ multipass set local.passphrase
Please enter passphrase: 
Please re-enter passphrase: 
set failed: The client is not authenticated with the Multipass service.
Please use 'multipass authenticate' before proceeding.

It seems that the client cannot be authorized to connect to the service . Even using sudo It may not work .

The following workarounds may help you get rid of this situation :

$ cat ~/snap/multipass/current/data/multipass-client-certificate/multipass_cert.pem | sudo tee -a /var/snap/multipass/common/data/multipassd/authenticated-certs/multipass_client_certs.pem > /dev/null
$ snap restart multipass

At this time , Your client should have been authorized to connect to Multipass service .


Link to the original text

How to authenticate clients with the Multipass service

原网站

版权声明
本文为[But the teacher]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206260435159578.html