This commit is contained in:
William Mantly 2016-05-27 00:52:07 -04:00
parent c319487141
commit 8c32b2e246

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 virt@'+ ip + ' "echo ' + command + '|base64 --decode|bash"';
command = 'ssh -o UserKnownHostsFile=/dev/null 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){