What does it mean if AuthenticationMethod has AllowedAuthentications set as null?
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 4.4k
- Forks
- 993
- Avg merge
- 9d 21h
- Merged PRs (30d)
- 1
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from ConnectionInfo.AuthenticationMethods and AuthenticationMethod.AllowedAuthentications, which are the members shown in the issue, and inspect how the SSH.NET authentication strategies populate them. Confirm what a null value means for keyboard-interactive authentication and document that behavior for users.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- networking
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100