This commit is contained in:
2016-07-20 15:36:07 -04:00
parent f525c4d98f
commit ec565c2803
5 changed files with 135 additions and 65 deletions

2
lxc.js
View File

@ -4,7 +4,7 @@ var exec = require('child_process').exec;
function sysExec(command, ip, callback){
ip = ip || '104.236.77.157';
command = new Buffer(command).toString('base64')
command = 'ssh -o StrictHostKeyChecking=no virt@'+ ip + ' "echo ' + command + '|base64 --decode|bash"';
command = 'ssh -i ~/.ssh/clw_rsa -o StrictHostKeyChecking=no virt@'+ ip + ' "echo ' + command + '|base64 --decode|bash"';
// command = 'unset XDG_SESSION_ID XDG_RUNTIME_DIR; cgm movepid all virt $$; ' + command;
return exec(command, (function(callback){