Code Monkey home page Code Monkey logo

Comments (4)

ahall avatar ahall commented on August 18, 2024

After turning logging on in NGit we get more information. It's also interesting that AES-256 cipers are not available.
I'm running on mono 2.6.7, would be nice if someone goes ahead and tests this on mono 2.8:

ahall@titanium:~/Projects/testssh/testssh/bin/Debug$ mono --debug testssh.exe
Connecting to somehost port 22
Connection established
Remote version string: SSH-2.0-OpenSSH_5.3p1 Debian-3ubuntu3
Local version string: SSH-2.0-JSCH-0.1.43
CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
aes256-ctr is not available.
aes192-ctr is not available.
aes128-ctr is not available.
aes256-cbc is not available.
aes192-cbc is not available.
aes128-cbc is not available.
3des-ctr is not available.
SSH_MSG_KEXINIT sent
SSH_MSG_KEXINIT received
kex: server->client 3des-cbc hmac-md5 none
kex: client->server 3des-cbc hmac-md5 none
SSH_MSG_KEXDH_INIT sent
expecting SSH_MSG_KEXDH_REPLY
ssh_rsa_verify: signature True
Permanently added 'somehost' (RSA) to the list of known hosts.                                                                                                                            
SSH_MSG_NEWKEYS sent
SSH_MSG_NEWKEYS received
SSH_MSG_SERVICE_REQUEST sent
SSH_MSG_SERVICE_ACCEPT received
Authentications that can continue: publickey,keyboard-interactive,password
Next authentication method: publickey
Authentications that can continue: password
Next authentication method: password
Disconnecting from somehost port 22

Unhandled Exception: NSch.JSchException: Auth fail
  at NSch.Session.Connect (Int32 connectTimeout) [0x00000] in <filename unknown>:0▷

from ngit.

pvginkel avatar pvginkel commented on August 18, 2024

I'm seeing this error too. The problem seems to be that the RSA signature returned by SHA1withRSASignature.Sign() is incorrect. The SSH server outputs the following message:

Jul  9 15:04:34 titan sshd[12778]: error: RSA_public_decrypt failed: error:0407006A:lib(4):func(112):reason(106)

openssl errstr gives:

error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block type is not 01

from ngit.

alanmcgovern avatar alanmcgovern commented on August 18, 2024

I believe this issue was fixed several months ago. We had hardcoded the value we expected the ssh key public exponent to have. All keys which did not use that hardcoded public exponent failed with errors like this. I'd recommend trying the latest from git and re-open this if the problem is still there.

from ngit.

pvginkel avatar pvginkel commented on August 18, 2024

I cannot thank you enough for solving this issue. Works perfectly.

from ngit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.