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

Ouverte
#1,276 12 commentaires 0 réactions 1 personne assignée Voir sur GitHub

@bummoblizard y travaille déjà.

Depuis le 29/10/2025.

Évaluation

Cette issue n'a pas encore été évaluée.

Description

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?

Langage dominant
Swift
Étoiles
4k
Forks
376
Merge moyen
1 min
PR mergées (30 j)
1

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de thebaselab/codeapp

Toutes les issues de thebaselab/codeapp

Issues similaires

Plus d'issues Swift

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.