mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
okk.... so ssh_userauth_list always returns 0
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user