mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-01 23:41:57 +02:00
Fix outstanding SSH bug seen with NetRunner and SyncTERM with ugly hack: Disable keep-alives
This commit is contained in:
parent
a4f60dd574
commit
f15629682c
1 changed files with 7 additions and 0 deletions
|
@ -321,6 +321,13 @@ exports.getModule = class SSHServerModule extends LoginServerModule {
|
|||
algorithms : config.loginServers.ssh.algorithms,
|
||||
};
|
||||
|
||||
//
|
||||
// This is a terrible hack, and we should not have to do it;
|
||||
// However, as of this writing, NetRunner and SyncTERM both
|
||||
// fail to respond to OpenSSH keep-alive pings (keepalive@openssh.com)
|
||||
//
|
||||
ssh2.Server.KEEPALIVE_INTERVAL = 0;
|
||||
|
||||
this.server = ssh2.Server(serverConf);
|
||||
this.server.on('connection', (conn, info) => {
|
||||
Log.info(info, 'New SSH connection');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue