Comments (4)
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.
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.
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.
I cannot thank you enough for solving this issue. Works perfectly.
from ngit.
Related Issues (20)
- Cached RmCommand unavailable
- Clone, Fetch, Push documentation / examples HOT 1
- Basic authentication when cloning with http/https
- Ngit File locks HOT 12
- Cannot add HEAD to a bundle HOT 1
- Incorrect topological sorting HOT 1
- Ngit CredentialProvider - Keypair HOT 1
- Nsch - generating RSA key fails with casting exception HOT 1
- Compatibility issues with latest SharpZipLib
- Exception / hang on Mono.Security Diffie-Helman key generation for SSH Transport
- Cloning works on IISExpress but fails on normal IIS.
- IsClean() HOT 1
- Diff is duplicated
- CopyOnWriteArrayList is dangerously broken
- Code is outdated HOT 7
- Outdated ciphers for using JSch
- Port to NetStandard 2.0
- Object reference not set to an instance of an object.
- A secure connection could not be established
- Algorithm negotiation fail
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngit.