Giter VIP home page Giter VIP logo

Comments (6)

stuicey avatar stuicey commented on May 27, 2024

Looks like something might have gone wrong in KEX since the client is forcing a disconnection debug3: receive packet: type 1 [preauth]

Probably easier to debug if you can provide the client's side by adding:

console.log(data.toString()); to https://github.com/stuicey/SSHy/blob/master/js/parceler.js#L29
&&
console.log(r.toString()); to https://github.com/stuicey/SSHy/blob/master/js/parceler.js#L65

from sshy.

candlerb avatar candlerb commented on May 27, 2024

It's, erm, very binary :-)

image

from sshy.

candlerb avatar candlerb commented on May 27, 2024

I added a few console logs of my own.

function verifyKey(host_key, sig){
        var rsa = new SSHyClient.RSAKey(new SSHyClient.Message(host_key));
        console.log("Made RSAKey");
        if(!rsa.verify(SSHyClient.kex.H, new SSHyClient.Message(sig))){
            console.log("Key verify failed");
                transport.disconnect();
            throw 'RSA signature verification failed, disconnecting.';
        }
}

Result:

this.SHAVersion = SHA-256
combinedLibs.comb.js:345 Made RSAKey
combinedLibs.comb.js:345 Key verify failed

It seems that the transport.disconnect is raising an error, before throw 'RSA signature verification failed, disconnecting.' has a chance to run.

from sshy.

candlerb avatar candlerb commented on May 27, 2024

I can tell you off-list the hostname of the server I'm connecting to, if you want to try it for yourself. It's on the Internet.

from sshy.

SkippyNet avatar SkippyNet commented on May 27, 2024

Note: I am having the same issue with Ubuntu 20.04 connecting to a RHEL server... I tried connecting through the server manually and received an error saying that it was trying to request diffie-hellman-group1 algorithm. I enabled that globally in the /etc/ssh/ssh_config using KexAlgorithms=+diffie-hellman-group1-sha1 and was able to connect directly but not through SSHy.

I believe this is an error when trying to connect to an antiquated server that is not on the latest SSH version. I say this because I can connect to other servers fine but the one I am having trouble with is very old and has not been updated in a minute.

@candlerb is your distant server running the latest SSH version?

from sshy.

candlerb avatar candlerb commented on May 27, 2024
$ dpkg-query -l openssh-server
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                            Version              Architecture         Description
+++-===============================-====================-====================-====================================================================
ii  openssh-server                  1:7.4p1-10+deb9u7    amd64                secure shell (SSH) server, for secure access from remote machines

And when logged onto that machine:

$ ssh -Q kex
diffie-hellman-group1-sha1
diffie-hellman-group14-sha1
diffie-hellman-group14-sha256
diffie-hellman-group16-sha512
diffie-hellman-group18-sha512
diffie-hellman-group-exchange-sha1
diffie-hellman-group-exchange-sha256
ecdh-sha2-nistp256
ecdh-sha2-nistp384
ecdh-sha2-nistp521
curve25519-sha256
[email protected]

from sshy.

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.