Listen to 'env' events
This commit is contained in:
parent
bdce70a5e2
commit
b23cdd20bf
|
@ -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 => {
|
session.on('shell', accept => {
|
||||||
self.log.debug('SSH shell event');
|
self.log.debug('SSH shell event');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue