Install NixOS on Amazon EC2/ja: Difference between revisions

From NixOS Wiki
Haruki7049 (talk | contribs)
Created page with "== トラブルシューティング =="
Haruki7049 (talk | contribs)
Created page with "== SSHがパスワードを尋ねてくる場合 =="
Line 31: Line 31:
== トラブルシューティング ==
== トラブルシューティング ==


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="SSH_Asks_For_Password"></span>
== SSH Asks For Password ==
== SSHがパスワードを尋ねてくる場合 ==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">

Revision as of 09:16, 4 November 2024

Amazon EC2 is a widely used cloud deployment platform that is part of Amazon Web Services (AWS). NixOS largely supports the platform through AMIs and the nixos-generators project.

NixOSのパブリックAMI

A list of NixOS AMI's available on AWS is located here and for a more up to date list: here (cf. this discourse thread).

The default user for these AMI's is root. There isn't a default password, instead authentication is done by using the SSH key selected during the EC2 creation process.

NixOSのAMIを作成する

The nixos-generators project is currently the best method to create your own NixOS AMI. Follow the directions provided by nixos-generators & then follow the instructions provided by AWS.

その他の資料

トラブルシューティング

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.