mwarning / trigger

Android app to lock/unlock/ring doors. Supports generic HTTPS/SSH/Bluetooth/MQTT and Nuki Smartlock.
GNU General Public License v3.0
133 stars 22 forks source link

no connect via ssh #44

Closed lada04 closed 4 years ago

lada04 commented 4 years ago

I'm trying to control an SR-201 IP Relay via ssh and python. When trying to connect via ssh to the server, the toast Session.connect: java.oi.IOException: End of IO Stream Read appears. Screenshot_20200609-123048

No login happens and the server log says: sshd[171698]: ssh_dispatch_run_fatal: Connection from 192.168.0.52 port 49083: DH GEX group out of range [preauth] while the port is incremented at each time. I've checked the public key and any other settings from the shell of a linux box - it works well there. Using on XPeria X Compact with Android 8.0.0 (Sep 2018).

lada04 commented 4 years ago

the ssh server is OpenSSH_8.3p1, OpenSSL 1.1.1g 21 Apr 2020 mainly with the default config.

mwarning commented 4 years ago

That is an odd error. I think the client (trigger uses http://www.jcraft.com/jsch/) needs some option to be set. I will test it with my laptop when I have a moment.

mwarning commented 4 years ago

I was able to recreate a problem. A library update fixed it for me.

https://github.com/mwarning/trigger/releases/tag/v3.0.1

lada04 commented 4 years ago

Great, this solved the issue for me.