} ).connect( sshConfig );
},
getClients:async ( req, res, next ) => {
- const error = new createError( 400, 'Not implemented yet' );
- next( error );
- /*const conn = new Client();
+ const conn = new Client();
conn.on( 'ready', () => {
const command = `cat /var/log/openvpn/openvpn-status.log`;
conn.exec( command, ( err, stream ) => {
} ).on( 'error', ( err ) => {
const error = new createError( 500, `SSH connection failed: ${ err.message }` );
next( error );
- } ).connect( sshConfig );*/
+ } ).connect( sshConfig );
}
};
\ No newline at end of file