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

Offen
#1,276 12 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@bummoblizard arbeitet bereits daran.

Seit 29.10.2025.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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?

Vorherrschende Sprache
Swift
Sterne
4k
Forks
376
Ø Merge
1 Min.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus thebaselab/codeapp

Alle Issues in thebaselab/codeapp

Ähnliche Issues

Weitere Issues zu Swift

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.