diff --git a/ShhShell/SSH/SSHHandler.swift b/ShhShell/SSH/SSHHandler.swift index 6eae2c5..5a0cffc 100644 --- a/ShhShell/SSH/SSHHandler.swift +++ b/ShhShell/SSH/SSHHandler.swift @@ -54,7 +54,7 @@ class SSHHandler: ObservableObject { self.host.key = getHostkey() } - var verbosity: Int = SSH_LOG_FUNCTIONS + var verbosity: Int = 0 session = ssh_new() guard session != nil else { diff --git a/ShhShell/Views/ConnectionView.swift b/ShhShell/Views/ConnectionView.swift index 723f8b0..c9504d6 100644 --- a/ShhShell/Views/ConnectionView.swift +++ b/ShhShell/Views/ConnectionView.swift @@ -146,10 +146,7 @@ struct ConnectionView: View { handler.host.key = hostsManager.getHostMatching(handler.host)?.key } } message: { - Text(""" - Expected \(hostsManager.getHostMatching(handler.host)!.key!.base64EncodedString()) - but recieved \(handler.host.key!.base64EncodedString()) from the server - """) + Text("Expected \(hostsManager.getHostMatching(handler.host)!.key?.base64EncodedString() ?? "null")\nbut recieved \(handler.host.key?.base64EncodedString() ?? "null" ) from the server") } .transition(.opacity) .toolbar {