--- wikisrc/amazon_ec2.mdwn 2011/02/18 03:55:52 1.18 +++ wikisrc/amazon_ec2.mdwn 2011/02/19 00:55:42 1.19 @@ -193,6 +193,14 @@ ATTACHMENT vol-24f88d4c i-5babe7 ## Snapshots! +Before we can connect to our brand new instance, we have to allow connections on SSH port (22) through the AWS EC2 firewall: + +[[!template id=programlisting text=""" +$ ec2-authorize default -p 22 +GROUP default +PERMISSION default ALLOWS tcp 22 22 FROM CIDR 0.0.0.0/0 +"""]] + We can now upload the kernel and the NetBSD disk image created earlier, *NetBSD-AMI.img*, to our instance host: [[!template id=programlisting text=""" @@ -204,14 +212,6 @@ rsync -aPv -e "ssh -i $EC2_SSH_KEY" NetB ec2-user@ec2-67-202-24-108.compute-1.amazonaws.com: """]] -Before we can connect to our brand new instance, we have to allow connections on SSH port (22) through the AWS EC2 firewall: - -[[!template id=programlisting text=""" -$ ec2-authorize default -p 22 -GROUP default -PERMISSION default ALLOWS tcp 22 22 FROM CIDR 0.0.0.0/0 -"""]] - Then, log in to the instance, via its name. We will format and mount the Grub partition, create the *menu.lst* file, then copy files to their respective partitions. [[!template id=programlisting text="""