stuff
This commit is contained in:
parent
c319487141
commit
8c32b2e246
2
lxc.js
2
lxc.js
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user