Unable to establish SSH connection - "Disconnect [preauth]" error

Abierto
#1,276 12 comentarios 0 reacciones 1 asignado Ver en GitHub

@bummoblizard ya está trabajando en esto.

Desde el 29/10/2025.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

Description

I just purchased this app specifically for its SSH functionality, but I cannot establish an SSH connection. The connection is immediately dropped during the pre-authentication phase.

Environment

  • Client: iOS (latest App Version, just downloaded)
  • Authentication method: OpenSSH private key pasted directly into the app with passphrase
  • Other SSH clients on my Mac: Working fine with the same credentials
  • SFTP enabled, root login access allowed with pubkey/no-password

Error Log

Connection from 10.90.90.41 port 54447 on 10.90.90.40 port 22 rdomain ""
Received disconnect from 10.90.90.41 port 54447:11: NMSSH: Disconnect [preauth]
Disconnected from authenticating user root 10.90.90.41 port 54447 [preauth]
srclimit_penalise: ipv4: new 10.90.90.41/32 deferred penalty of 1 seconds for penalty: connections without attempting authentication

What I've tried

  • ✅ SSH config checked – all settings allow the connection
  • ✅ Same private key + passphrase works with other SSH clients (Terminal, etc.)
  • ✅ Server is reachable and accepting connections from my IP

Problem

The server log shows "connections without attempting authentication", meaning the app disconnects before even trying to authenticate. The error message references "NMSSH: Disconnect [preauth]", suggesting the NMSSH library is terminating the connection prematurely.

Question

What could cause the app to disconnect before attempting authentication? Is there a known issue with the NMSSH library or how private keys with passphrases are handled?

Lenguaje dominante
Swift
Estrellas
4k
Forks
376
Merge medio
1 min
PR fusionados (30 d)
1

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de thebaselab/codeapp

Todos los issues de thebaselab/codeapp

Issues similares

Más issues de Swift

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.