Listen to 'env' events

This commit is contained in:
Bryan Ashby 2019-01-02 19:52:15 -07:00
parent bdce70a5e2
commit b23cdd20bf
1 changed files with 8 additions and 0 deletions

View File

@ -238,6 +238,14 @@ function SSHClient(clientConn) {
}
});
session.on('env', (accept, reject, info) => {
self.log.debug(info, 'SSH env event');
if(_.isFunction(accept)) {
accept();
}
});
session.on('shell', accept => {
self.log.debug('SSH shell event');