From 869de8a47b7731e35cb6d1e9245a68f676a08905 Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Thu, 19 Jun 2025 13:06:31 +0100 Subject: [PATCH] ok - progress!! libssh can read the files saved!! --- ShhShell/SSH/SSHHandler.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ShhShell/SSH/SSHHandler.swift b/ShhShell/SSH/SSHHandler.swift index 47494fd..5b6d2e0 100644 --- a/ShhShell/SSH/SSHHandler.swift +++ b/ShhShell/SSH/SSHHandler.swift @@ -182,7 +182,11 @@ class SSHHandler: ObservableObject { print(status) var privkey: ssh_key? - ssh_pki_import_privkey_file(tempKey.path(), pass, nil, nil, &privkey) + if ssh_pki_import_privkey_file(tempKey.path(), pass, nil, nil, &privkey) != 0 { + print("help?!?") + } + + } func authWithPw() -> Bool {