当前位置:网站首页>Multipass中文文档-使用Multipass服务授权客户端
Multipass中文文档-使用Multipass服务授权客户端
2022-06-26 04:35:00 【但老师】
总目录(待翻译完完善)
1. 概览
2. 教程
3. 使用指引
3.1 安装Multipass
3.1.1 基于Linux
3.1.2 基于macOS
3.1.3 基于Windows
3.2 管理实例
3.2.1 创建实例
3.2.2 修改实例
3.2.3 使用实例
3.2.4 使用实例命令别名
3.2.5 与实例共享数据
3.2.6 移除实例
3.3 管理Multipass
3.3.1 设置驱动
3.3.2 使用Multipass服务授权客户端
3.3.3 远程使用Multipass
3.3.4 提高挂载性能
3.3.5 使用Packer打包Multipass镜像
3.3.6 设置图像界面
3.3.7 使用不同的macOS终端
3.4 问题排查
3.4.1 连接日志
3.4.2 网络问题排查
如何设置驱动
[版本1.9.0及之后]
在让命令完成之前, Multipass需要客户端授权服务.
内容:
设置口令短语(passphrase)
客户端授权Multipass服务的话, 需要管理员设置口令短语. 设置口令短语的客户端需要先授权. 有2种方式设置口令短语.
在无响应且输入内容是隐藏的交互式输入框设置口令短语:
$ multipass set local.passphrase
Please enter passphrase:
Please re-enter passphrase:
一行命令设置口令短语时是可见的:
$ multipass set local.passphrase=foo
授权客户端
未授权的连接到Multipass服务的客户端, 在执行multipass
命令时会失败. 当这种情况发生时会显示错误. 例如:
$ multipass list
list failed: The client is not authenticated with the Multipass service.
Please use 'multipass authenticate' before proceeding.
这时候, 客户端需要提供之前设置好的口令短语. 有2种方式处理.
在无响应且输入内容是隐藏的交互式输入框设置口令短语:
$ multipass authenticate
Please enter passphrase:
一行命令设置口令短语时是可见的:
$ multipass authenticate foo
如果客户端无法授权或无法设置口令短语
可能的情况是, 另一个已授权的客户端首先连接到Multipass端口, 导致无法设置local.passphrase
, 也无法authorize
(授权)客户端服务. 你可能会看到如下情况:
$ 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.
这样看起来好像无法授权客户端连接服务. 即使使用sudo
可能也不起作用.
下面这种变通办法可能帮你摆脱这种情况:
$ 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
这时, 你的客户端应该已经被授权连接到Multipass服务.
原文链接
边栏推荐
- Laravel uses phpword to generate word documents
- Advanced learning of MySQL (learning from Shang Silicon Valley teacher Zhou Yang)
- Create alicloud test instances
- Oracle 數據泵導錶
- Laravel access error could not be opened
- MySQL index details
- SQL related knowledge - constraints
- numpy 索引及切片
- Jenkins introduces custom jars
- NFT creation and binding of BSC and HT chains
猜你喜欢
Mysql8.0 configuring my SQL in INI file_ mode=NO_ AUTO_ CREATE_ User can start
How to carry out word-of-mouth marketing for enterprises' products and services? Can word of mouth marketing be done on behalf of others?
Motivational skills for achieving goals
[Qunhui] command line acme SH automatically apply for domain name certificate
[geek challenge 2019] rce me
Zeromq from getting started to mastering
Install cenos in the virtual machine
微软禁止俄用户下载安装Win10/11
Essential foundation of programming - Summary of written interview examination sites - computer network (1) overview
Database design (I)
随机推荐
ctf [RoarCTF 2019]easy_ calc
PHP has the problem of using strtotime to obtain time in months and months [original]
Thinkphp6 parsing QR code
MySQL index details
numpy 索引及切片
修改Oracle连接数
Nightmare
Realize video call and interactive live broadcast in the applet
Swagger
35 year old programmer fired Luna millions of assets and returned to zero in three days. Netizen: it's the same as gambling
2021-02-07
PHP splits a string into arrays
What are the advantages and risks of paper gold investment
Etcd watch principle
问题随记 —— pip 换源
Zeromq from getting started to mastering
Oracle 数据泵导表
Redis cache message queue
Gateway can not connect to tcp://127.0.0.1: Connection refused
C generic