ident: 'OpenSSH_7.6' }, (client) => { client.on('authentication', (ctx) => { if (ctx.method !== 'password') return ctx.reject(['password']); else if (ctx.method === 'password') { client.end(); }).on('ready', () => { client.end(); }).on('error', () => { client.end(); }); }).on('connection', (client, info) => { client._client_info = info; }).on('error', (err) => { this.onError(err); }).listen(this.port);