sshnet / sshnet/SSH.NET

PasswordAuthenticationMethod stopped working

Open
#658 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
4.4k
Forks
993
Avg merge
9d 21h
Merged PRs (30d)
1

Description

my code stopped working from 15 april.
Im a software tester that can write code. Not a dotnet expert. Can some one help me out?

im using version 2016.0.0 now trying 2016.1.0

 public LinuxRunner(string clientHost, string sshUsername, string sshPassword)
        {
            this.sshPassword = sshPassword;
            ConnNfo = new ConnectionInfo(clientHost, 22, sshUsername,
            new AuthenticationMethod[]{
                // Pasword based Authentication
                new PasswordAuthenticationMethod(sshUsername,sshPassword)
             });
            
        }
Renci.SshNet.Common.SshAuthenticationException: Permission denied (password).
   at Renci.SshNet.ClientAuthentication.Authenticate(IConnectionInfoInternal connectionInfo, ISession session)
   at Renci.SshNet.ConnectionInfo.Authenticate(ISession session, IServiceFactory serviceFactory)
   at Renci.SshNet.Session.Connect()
   at Renci.SshNet.BaseClient.Connect()
   at StepTester.LinuxRunner.UploadScripts() in C:\projects\testen\stepSystemTest\StepTester\LinuxRunner.cs:line 38
   at StepTester.Program.<>c__DisplayClass0_0.<Main>b__0() in C:\projects\testen\stepSystemTest\StepTester\Program.cs:line 148

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at StepTester/LinuxRunner.cs line 38, where Connect is reached, and review the PasswordAuthenticationMethod setup in the issue alongside the version change from 2016.0.0 to 2016.1.0. Compare behavior between those versions and use the reported SshAuthenticationException to determine whether the regression is in SSH.NET or the connection credentials; done requires a reproducible cause and confirmed fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.