Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
a script to take a base amazon AMI and enable root@ ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
lloyd committed Feb 10, 2014
1 parent 782907f commit c849643
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ exports.waitForInstance = function(id, cb) {
// find the instanceStatusSet
var status = jsel.match('.instanceStatusSet', r)[0];
if ( status === '' ) {
process.stdout.write(tries <= 1 ? " ..." : ".");
console.log(' ... not yet created');
return setTimeout(function(){ exports.waitForInstance(id, cb); }, CREAT_POLL);
}

Expand Down
7 changes: 7 additions & 0 deletions scripts/enable_root.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

# execute this on a new AWS images to allow ssh access via the root user

sudo sed -i s/^#PermitRoot/PermitRoot/ /etc/ssh/sshd_config
sudo /etc/init.d/sshd restart
sudo sed -i s/^.*ssh-rsa/ssh-rsa/ /root/.ssh/authorized_keys

0 comments on commit c849643

Please sign in to comment.