(debug, title)
| 291 | })(); |
| 292 | |
| 293 | function setupSimple(debug, title) { |
| 294 | const { client, server } = setup(title, { |
| 295 | client: { username: 'Password User', password: '12345' }, |
| 296 | server: { hostKeys: [ fixtureKey('ssh_host_rsa_key').raw ] }, |
| 297 | debug, |
| 298 | }); |
| 299 | server.on('connection', mustCall((conn) => { |
| 300 | conn.on('authentication', mustCall((ctx) => { |
| 301 | ctx.accept(); |
| 302 | })); |
| 303 | })); |
| 304 | return { client, server }; |
| 305 | } |
| 306 | |
| 307 | module.exports = { |
| 308 | fixture, |