What does it mean if AuthenticationMethod has AllowedAuthentications set as null?
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C#
- Sterne
- 4.4k
- Forks
- 993
- Ø Merge
- 9 T. 21 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
I have a server where I am sending password, and keyboard-interactive authentication methods. The password fails so it uses keyboard interactive.
Right after I connect I am getting the sshclient.ConnectionInfo so I can log some data.
// ConnectionInfo looks like this in ssh.net but I am interested in Authentication Methods
class ConnectionInfo {
....
public IList<AuthenticationMethod> AuthenticationMethods { get; }
...
}
This is the code that does the printing:
// Log information about the connection authentication methods
foreach (var eachAthenticationMethod in connectionInfo?.AuthenticationMethods ?? new List<AuthenticationMethod>())
{
Log($" Strategy: {eachAthenticationMethod?.Name}, AllowedAuthentication: {string.Join(",", eachAthenticationMethod?.AllowedAuthentications ?? (new List<string>()).ToArray())}");
}
This is what I am printing.
Strategy: password, AllowedAuthentication: publickey,password,keyboard-interactive
Strategy: keyboard-interactive, AllowedAuthentication:
keyboard-interactive's AllowedAuthentication is null.
What does it mean if AuthenticationMethod has AllowedAuthentications set as null?
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie mit ConnectionInfo.AuthenticationMethods und AuthenticationMethod.AllowedAuthentications, den im Issue gezeigten Membern, und untersuchen Sie, wie die Authentifizierungsstrategien von SSH.NET diese befüllen. Bestätigen Sie, was ein null-Wert bei der Keyboard-Interactive-Authentifizierung bedeutet, und dokumentieren Sie dieses Verhalten für Benutzer.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- networking
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100