diff --git a/ShhShell/Host/HostsManager.swift b/ShhShell/Host/HostsManager.swift index 7b763a0..5644cec 100644 --- a/ShhShell/Host/HostsManager.swift +++ b/ShhShell/Host/HostsManager.swift @@ -113,7 +113,7 @@ class HostsManager: ObservableObject, @unchecked Sendable { return false } - let reason = "Authenticate yourself with Face ID to view private keys" + let reason = "Authenticate yourself to view private keys" return await withCheckedContinuation { continuation in context.evaluatePolicy(.deviceOwnerAuthentication, localizedReason: reason) { success, _ in continuation.resume(returning: success) diff --git a/ShhShell/SSH/SSHHandler.swift b/ShhShell/SSH/SSHHandler.swift index a199d71..300217d 100644 --- a/ShhShell/SSH/SSHHandler.swift +++ b/ShhShell/SSH/SSHHandler.swift @@ -141,7 +141,7 @@ class SSHHandler: @unchecked Sendable, ObservableObject { if connected && (ssh_is_connected(session) == 1) { ssh_disconnect(self.session) } - ssh_free(self.session) +// ssh_free(self.session) self.session = nil } diff --git a/ShhShell/Views/Keys/KeyDetailView.swift b/ShhShell/Views/Keys/KeyDetailView.swift index f6b548b..0f43342 100644 --- a/ShhShell/Views/Keys/KeyDetailView.swift +++ b/ShhShell/Views/Keys/KeyDetailView.swift @@ -22,7 +22,8 @@ struct KeyDetailView: View { VStack(alignment: .leading) { Text("Private key") .bold() - ZStack { + .frame(maxWidth: .infinity) + ZStack(alignment: .center) { Text(String(data: keypair.privateKey!, encoding: .utf8) ?? "nil") .blur(radius: reveal ? 0 : 5) VStack { @@ -33,6 +34,7 @@ struct KeyDetailView: View { } .opacity(reveal ? 0 : 1) } + .frame(maxWidth: .infinity) .onTapGesture { Task { if !reveal { diff --git a/ShhShell/Views/Keys/KeyManagerView.swift b/ShhShell/Views/Keys/KeyManagerView.swift index 886bcbe..96ce9bb 100644 --- a/ShhShell/Views/Keys/KeyManagerView.swift +++ b/ShhShell/Views/Keys/KeyManagerView.swift @@ -29,7 +29,7 @@ struct KeyManagerView: View { NavigationLink { List { if hostsManager.savedHosts.isEmpty { - VStack(alignment: .center) { + VStack(alignment: .leading) { Text("Looking empty 'round here...") .font(.title3) .bold()