okk.... so ssh_userauth_list always returns 0

This commit is contained in:
neon443
2025-06-08 21:05:08 +01:00
parent ec10964c4b
commit 89defb4ac7

View File

@@ -44,7 +44,7 @@ class SSHHandler: ObservableObject {
func connect() -> Bool {
defer {
getAuthMethods()
// getAuthMethods()
self.host.key = getHostkey()
}
@@ -231,6 +231,7 @@ class SSHHandler: ObservableObject {
return true
}
//always unknown idk why
func getAuthMethods() {
var recievedMethod: CInt
recievedMethod = ssh_userauth_list(session, host.username)