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

Aberta
#1,276 12 comentários 0 reações 1 responsável Ver no GitHub

@bummoblizard já está trabalhando nisso.

Desde 29/10/2025.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

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?

Linguagem predominante
Swift
Estrelas
4k
Forks
376
Merge médio
1min
PRs com merge (30d)
1

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de thebaselab/codeapp

Todas as issues de thebaselab/codeapp

Issues semelhantes

Mais issues de Swift

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.