Skip to content

Commit 46489df

Browse files
committed
Let NixOps provide known_hosts independently of user known_hosts
Companion of NixOS/nixops#1464
1 parent 0056e04 commit 46489df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nixops_aws/backends/ec2.py

+3
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,9 @@ def _ip_for_ssh_key(self):
488488
else:
489489
return self.public_ipv4
490490

491+
def get_ssh_host_keys(self):
492+
return self.private_ipv4 + " " + self.public_host_key + "\n" + self.public_ipv4 + " " + self.public_host_key + "\n"
493+
491494
def _booted_from_ebs(self):
492495
return self.root_device_type == "ebs"
493496

0 commit comments

Comments
 (0)