Armadra

使用

团队与控制台

用 Armadra 云登录、建团队、登记主机,按权限授予与分享,查看审计与用量,在浏览器里打开主机。


Armadra 云开放注册,在 app.armadra.com 用 GitHub 账号登录即可开始,目前只有免费计划,详见云服务。控制台是浏览器里的管理界面:账号、团队、主机、授予、链接、设备信任、审计与用量都在这里。终端、Git 与 Agent 仍在你的电脑或服务器上执行。

登录与账号

在控制台的登录页选一种方式。可用的方式由这套云服务开放哪些决定:官方的 app.armadra.com 目前只开放「使用 GitHub 继续」,没有口令登录;别的部署还可能有「使用 Google 继续」,或用邮箱与口令登录、「注册」。

  1. 点「使用 GitHub 继续」,在 GitHub 上授权。第一次登录会自动创建账号,邮箱取你 GitHub 上已验证的主邮箱,没有已验证的主邮箱就登录不了。
  2. 如果这个邮箱已经有账号,会提示「该邮箱已有账号,请用原方式登录」,用原来的方式登录,再在「账号」里绑定新的方式。
  3. 用邮箱与口令注册的账号,要点验证邮件里的链接。邮箱验证后才能登记主机与分享。

在「账号」页可以改名字、邮箱,在「登录方式」里「绑定」或「解绑」GitHub、Google(解绑后不能再用它登录),查看已登录的「设备」并「退出」或「退出其他全部」,看「安全日志」。需要再次确认身份的操作(比如授权设备)会让你「验证并授权」。

个人空间与团队

每个账号有一个只属于自己的个人空间。左上角的空间菜单可以切换空间,菜单底部「创建团队」填名称与地址。主机、授予、链接与审计都归属一个空间。

邀请成员

在团队的「成员」点「邀请成员」,一次可填多个邮箱(逗号或换行分隔),选好角色后「发送邀请」。对方打开邀请,登录或注册后接受。待接受的邀请可以重新发送或撤销。

角色 能做什么
所有者 全部操作
管理员 管理成员、主机、授予、链接与团队设置,查看审计
成员 使用被授予的主机;团队设置允许时可以登记主机
账单 查看成员、用量与计划
访客 只看到被授予的主机

登记主机

主机就是一台运行 Armadra 的电脑或服务器。登记后它经中继出站连接,不开入站端口。

桌面:打开「设置 → 远程访问」,点「添加 Armadra 云」→「登录」,对话框里会显示设备码,再点「在浏览器中打开」。在控制台的「授权设备」页核对设备码与设备名,点「授权」。回到桌面,在「登记到」里选个人空间或团队,点「登记这台电脑」。

服务器:在服务器上运行

armadra-server cloud login --issuer <控制台地址> --space <团队地址>

终端打印设备码与验证地址,在浏览器里核对后授权。不带 --space 时登记到个人空间。也可以在控制台的「主机 → 登记主机 → 服务器」复制注册令牌与命令,用 cloud register --token-stdin 登记。Windows 上的服务器壳不支持这些命令。

授予访问

在团队的「授予」点「添加访问」:选对象(团队全员或某位成员)、主机、权限与到期(永不、7、30 或 90 天)。

权限 含义
只读 查看画布与终端画面
可编辑 再加上编辑画布
可执行 再加上开自己的终端、启动 Agent、读写文件与 Git
可接管 再加上向他人的终端与 Agent 输入、回答审批

主机详情的「访问」页签按人列出最终权限,展开能看到每条来源,可以逐条撤销。主机登记到团队后,桌面的分享弹层里也能直接授予团队成员或按邮箱邀请。

设备信任

一台设备第一次经 Armadra 云进入主机时,要由已受信的设备放行。新设备上显示一个 6 位校验码并等待确认;主机所有者、团队管理员或你自己已受信的设备在控制台的「设备信任」或桌面横幅里点「信任」,输入这个校验码。校验码只在端到端通道里核对,云端看不到。

谁可以放行由团队「设置 → 访问」里的「新设备背书人」决定(「主机所有者」或「主机所有者与管理员」);打开「成员可从自己已信任的设备背书」时,成员也能用自己已信任的设备放行。

分享链接

在「链接」点「新建链接」:选主机、权限(缺省只读)、有效期(1、7 或 30 天)、次数上限与备注。链接只在创建时显示一次,复制后发给对方。对方打开后点「加入」,以访客进入画布;需要登录的链接先登录。撤销链接后,经它加入的人一并停用。

服务器上也可以生成链接:

armadra-server invite --cloud-link --issuer <控制台地址> --host --role viewer

团队设置

团队的「设置」里,「常规」有「名称」与「地址」;「访问」有「成员可以登记主机」「缺省主机角色」「允许访客」「允许免登录链接」与上面的「新设备背书人」。这里还可以「转移所有权」、「离开团队」或「删除团队」,删除后 30 天内可以「恢复团队」。

审计

「审计」按时间列出团队里发生的事:登记主机、授予与撤销访问、邀请、链接、设备信任、连接主机等。可以按「时间范围」(最近 24 小时、7 天、30 天、90 天)、「成员」、「主机」与「类型」筛选,展开一行看细节。所有者与管理员可以查看。

用量与计划

「用量与计划」显示这个空间当前的「计划」,以及主机、成员、访客、同时连接的数量与「本月流量」。接近或达到上限时会有提示,达到主机数上限后不能再登记新主机,先撤销一台。

在浏览器里打开主机

在主机列表里点「打开」,新标签页打开 /h/<主机 id>,画布与桌面上相同。登出控制台时,这些标签页一并断开。

完整的界面设计见 Armadra 仓库的控制台设计;服务器命令见服务器部署指南。

Guides

Teams and console

Sign in to Armadra Cloud, create a team, register hosts, grant and share by role, review the audit log and usage, and open hosts in the browser.


Armadra Cloud is open for sign-up: sign in with your GitHub account at app.armadra.com to start. Only the Free plan is available for now; see Cloud. The console is the management interface in the browser: accounts, teams, hosts, grants, links, device trust, the audit log and usage all live there. Terminals, Git and agents still run on your computer or server.

Signing in and your account

Choose a method on the console’s sign-in page. Which methods exist depends on what that cloud service has turned on: the official app.armadra.com currently offers only “Continue with GitHub”, with no password sign-in; other deployments may also offer “Continue with Google”, or sign-in and “Sign up” with email and password.

  1. Choose “Continue with GitHub” and authorize on GitHub. The first sign-in creates your account automatically, using the verified primary email on your GitHub account; without a verified primary email you cannot sign in.
  2. If that email already has an account you see “This email already has an account. Sign in the way you did before”; sign in the way you did, then link the new method under “Account”.
  3. An account created with email and password needs you to follow the link in the verification email. You can register hosts and share only after your email is verified.

On the “Account” page you can change your name and email, “Link” or “Unlink” GitHub and Google under “Sign-in methods” (an unlinked method can no longer be used to sign in), see your signed-in “Devices” and “Sign out” or “Sign out all others”, and read the “Security log”. Operations that need you to prove who you are again, such as authorizing a device, ask you to “Verify and authorize”.

Personal space and teams

Every account has a personal space that belongs to you alone. Switch spaces from the space menu in the top left; “Create team” at the bottom of the menu asks for a name and an address. Hosts, grants, links and the audit log each belong to one space.

Invite members

In the team’s “Members”, choose “Invite members”. Enter one or more emails (separated by commas or new lines), pick a role, then “Send invitations”. The invitee opens the invitation, signs in or signs up, and accepts. Pending invitations can be resent or revoked.

Role What they can do
Owner Everything
Admin Manage members, hosts, grants, links and team settings; review the audit log
Member Use the hosts granted to them; register hosts when team settings allow
Billing See members, usage and plan
Guest See only the hosts granted to them

Register a host

A host is a computer or server running Armadra. Once registered, it connects out through the relay with no inbound ports.

Desktop: open Settings → Remote access, choose “Add Armadra Cloud” → “Sign in”; the dialog then shows a device code, so choose “Open in browser”. On the console’s “Authorize a device” page, check the code and the device name, then choose “Authorize”. Back on the desktop, pick your personal space or a team under “Register to” and choose “Register this computer”.

Server: on the server, run

armadra-server cloud login --issuer <console address> --space <team address>

The terminal prints a device code and a verification address; check it in the browser and authorize. Without --space, the host goes to your personal space. You can also copy a registration token and command from Hosts → Register host → Server in the console and register with cloud register --token-stdin. The server shell on Windows does not support these commands.

Grant access

In the team’s “Grants”, choose “Add access”: pick a subject (everyone in the team or one member), a host, a role and an expiry (never, 7, 30 or 90 days).

Role Meaning
View only See the canvas and terminal output
Can edit Also edit the canvas
Can run Also open their own terminals, launch agents, and read and write files and Git
Full control Also type into other people’s terminals and agents, and answer approvals

The “Access” tab of a host lists each person’s effective role; expand a row to see every source and revoke them one by one. Once a host belongs to a team, the share popover on the desktop can grant team members directly or invite by email.

Device trust

The first time a device reaches a host through Armadra Cloud, a trusted device has to approve it. The new device shows a 6-digit code and waits; the host owner, a team admin or one of your own trusted devices chooses “Trust” in the console’s “Device trust” or in the desktop banner and enters that code. The code is checked only inside the end-to-end channel; the cloud never sees it.

Who can approve is set by “New device approvers” under Settings → Access in the team (“Host owner” or “Host owner and admins”); with “Members can approve from their trusted devices” on, members can approve with a device they already trust.

In “Links”, choose “New link”: pick a host, a role (View only by default), an expiry (1, 7 or 30 days), a use limit and a note. The link is shown only once, when it is created; copy it and send it on. The recipient opens it, chooses “Join” and lands on the canvas as a guest; links that require sign-in ask them to sign in first. Revoking a link also cuts off everyone who joined through it.

You can create links on a server too:

armadra-server invite --cloud-link --issuer <console address> --host --role viewer

Team settings

In the team’s “Settings”, “General” has “Name” and “Address”; “Access” has “Members can register hosts”, “Default host access”, “Allow guests”, “Allow links without sign-in” and the “New device approvers” above. Here you can also “Transfer ownership”, “Leave team” or “Delete team”; a deleted team can be restored with “Restore team” within 30 days.

Audit log

The “Audit log” lists what happened in the team over time: hosts registered, access granted and revoked, invitations, links, device trust, hosts connected and so on. Filter by “Time range” (last 24 hours, 7, 30 or 90 days), “Member”, “Host” and “Type”, and expand a row for details. Owners and admins can view it.

Usage and plan

“Usage and plan” shows the space’s current “Plan”, plus the number of hosts, members, guests and concurrent connections and “Traffic this month”. You are warned as you near or reach a limit, and once the host limit is reached no new host can be registered until you revoke one.

Open a host in the browser

Choose “Open” in the host list to open /h/<host id> in a new tab; the canvas is the same as on the desktop. Signing out of the console disconnects these tabs as well.

For the full interface design, see the console design in the Armadra repository; for server commands, see the server deployment guide.

在 GitHub 上编辑本页 Edit this page on GitHub