Skip to content

Stuck in infinite loop #147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fcisler opened this issue Jan 5, 2017 · 1 comment
Closed

Stuck in infinite loop #147

fcisler opened this issue Jan 5, 2017 · 1 comment
Assignees
Labels

Comments

@fcisler
Copy link

fcisler commented Jan 5, 2017

Not sure if I'm doing something wrong here....

Dim pkf As New Renci.SshNet.PrivateKeyFile("c:\path\to\private.key")
Dim sc As New Renci.SshNet.SshClient("192.168.1.66", "username", pkf)
sc.Connect()

And I just get an infinite loop in RsaCipher.cs, specifically

   while (random <= BigInteger.One || random >= max)
            {
                random = BigInteger.Random(bitLength);
            }

Using a linux host, ssh -i private.key [email protected] works without issue. Unfortunately I must use private key authentication and do not have the option to test other methods with this host. Putty from the same windows machine also works.

@drieseng drieseng self-assigned this Jan 8, 2017
@drieseng drieseng added the bug label Jan 8, 2017
@drieseng
Copy link
Member

drieseng commented Jan 8, 2017

This should be fixed.
Please confirm that you were building SSH.NET from the develop branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants