What does it mean if AuthenticationMethod has AllowedAuthentications set as null?
Nessuno ha ancora preso questa issue.
- Lingua principale
- C#
- Stelle
- 4.4k
- Fork
- 993
- Merge medio
- 9g 21h
- PR unite (30g)
- 1
Descrizione
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?
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Partite da ConnectionInfo.AuthenticationMethods e AuthenticationMethod.AllowedAuthentications, che sono i membri mostrati nell’issue, e analizzate come le strategie di autenticazione di SSH.NET li valorizzano. Confermate cosa significa un valore null per l’autenticazione keyboard-interactive e documentate questo comportamento per gli utenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- networking
- Tipo di issue
- Documentazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100