Permalink
Browse files

truncate auth keys files to zero, but do not remove them (permissions…

… are set at provisioning time)
  • Loading branch information...
1 parent 2ae779e commit 74993c6d12a51450b9f2423facc10f5962dcb881 @lloyd lloyd committed Feb 10, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ssh.js
View
@@ -186,7 +186,7 @@ exports.configureProxy = function(host, behavior, cb) {
exports.makePristine = function(host, cb) {
var destination = 'ec2-user@' + host;
- var rcmd = 'sudo rm ~root/.ssh/authorized_keys ~/.ssh/authorized_keys';
+ var rcmd = 'sudo truncate -s0 ~root/.ssh/authorized_keys ~/.ssh/authorized_keys';
var args = ['-o', 'StrictHostKeyChecking no', destination, rcmd];
passthrough(child_process.execFile(ssh, args, cb));
};

0 comments on commit 74993c6

Please sign in to comment.