From 651a4d82a596f4431f10adedb98ff8fd75e10387 Mon Sep 17 00:00:00 2001 From: william Date: Sat, 30 Apr 2016 23:28:59 -0400 Subject: [PATCH] ssh --- lxc.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lxc.js b/lxc.js index 50de262..7b851f0 100644 --- a/lxc.js +++ b/lxc.js @@ -2,7 +2,8 @@ var exec = require('child_process').exec; function sysExec(command, callback){ - command = 'ssh virt@104.236.77.157 ' + command; + command = new Buffer(command).toString('base64') + command = 'ssh virt@104.236.77.157 "' + command + '|base64 --decode|bash"'; // command = 'unset XDG_SESSION_ID XDG_RUNTIME_DIR; cgm movepid all virt $$; ' + command; return exec(command, (function(callback){