Comments (6)
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.
It's, erm, very binary :-)
from sshy.
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.
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.
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.
$ 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)
- Question and Possible bug. HOT 4
- Question: SSHy as angular/vue component?
- Keeps loading without connecting - wsproxy problem HOT 1
- can we have a ssh client that needs to creds
- Is there any way to include user name in wrapper.html? HOT 2
- Stuck on connecting... HOT 4
- Question: Predefined commands? HOT 2
- Support for binary websockets HOT 3
- Better error handling
- DOMException: Failed to execute 'atob' on 'Window' HOT 1
- Unable to closure-compile or connect HOT 1
- Safari support
- Really dumb question
- Stopped working with latest browsers HOT 28
- Can't send return key in latest Chrome 90.0.4430.93 HOT 1
- Failed to execute 'atob' on 'Window'
- Latest Chrome Update broke user return HOT 2
- WebSocket connection failed: Error in connection establishment: code 1005 HOT 2
- Invalid Signature Using Public Key Auth
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 sshy.