From 0e1915cf64b66d863136abc16368967d13f222a0 Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Thu, 3 Jul 2025 11:37:02 +0100 Subject: [PATCH] add suthfailed for when auth fails --- ShhShell/SSH/SSHHandler.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ShhShell/SSH/SSHHandler.swift b/ShhShell/SSH/SSHHandler.swift index e7849a6..fd14c78 100644 --- a/ShhShell/SSH/SSHHandler.swift +++ b/ShhShell/SSH/SSHHandler.swift @@ -85,6 +85,7 @@ class SSHHandler: @unchecked Sendable, ObservableObject { if !host.password.isEmpty { do { try authWithPw() } catch { + state = .authFailed print("pw auth error") print(error.localizedDescription) } @@ -94,6 +95,7 @@ class SSHHandler: @unchecked Sendable, ObservableObject { try authWithPubkey() } } catch { + state = .authFailed print("error with pubkey auth") print(error.localizedDescription) }