wiki/info/landscape/creating-ec2-image-from-scratch.md
... ...
@@ -60,7 +60,7 @@ UUID=7d7e68a3-27a1-49ef-908f-a6ebadcc55bb none swap sw 0
60 60
```
61 61
62 62
This will mount the swap space partition as well as the /home/sailing partition, /var/log/old and the Android SDK stuff required for local builds.
63
-
63
+Do the following steps (until it says otherwise) without logging out in between them:
64 64
In `/etc/ssh/sshd_config` I commented the line
65 65
66 66
```
... ...
@@ -76,9 +76,12 @@ PermitRootLogin Yes
76 76
MaxStartups 100
77 77
```
78 78
79
+
79 80
to allow root shell login, and allow for several concurrent SSH connections (up to 100) starting up around the
80 81
same time.
81 82
83
+Furthermore, on recent AMIs, you may have to go to `/root/.ssh/authorized_keys` and remove the statements before the keys start, otherwise you might lock yourself out (because you can't access root but the new permissions block ec2-user access). If you are locked out, then you can use EC2 Instance Connect, which can be found by clicking on an instance and clicking connect.
84
+You may now logout.
82 85
83 86
I linked /etc/init.d/sailing to /home/sailing/code/configuration/sailing and added the following links to it:
84 87