Install NixOS on Amazon EC2/zh: Difference between revisions
Appearance
Created page with "== 故障排除 ==" |
Created page with "=== SSH 要求输入密码 ===" Tags: Mobile edit Mobile web edit |
||
Line 22: | Line 22: | ||
== 故障排除 == | == 故障排除 == | ||
< | <span id="SSH_Asks_For_Password"></span> | ||
=== SSH | === SSH 要求输入密码 === | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> |
Revision as of 19:16, 28 August 2025
Amazon EC2 是一个广泛使用的云部署平台,隶属于亚马逊网络服务 (AWS)。NixOS 主要通过 AMI 和 nixos-generators 项目支持该平台。
公共 NixOS AMIs
AWS 上可用的 NixOS AMI 列表位于 此处,更新的列表位于:此处(参见 此讨论线程)。
这些 AMI 的默认用户是 root
。没有默认密码,而是使用在 EC2 创建过程中选择的 SSH 密钥进行身份验证。
创建 NixOS AMI
目前,nixos-generators 项目是创建您自己的 NixOS AMI 的最佳方法。请遵循 nixos-generators
提供的说明,然后遵循 AWS 提供的介绍。
其他资源
在 EC2 上构建和导入 NixOS AMI 作者:Jack Kelly
故障排除
SSH 要求输入密码
When connecting to a newly launched EC2 instance via SSH, it may ask for a password. This seems to be because the amazon-init
systemd service is still reading user data. Back out of the current SSH attempt and try again in a few minutes.