banksy-git / lidl-gateway-freedom

Freeing the Silvercrest (Lidl/Tuya) Smart Home Gateway from the cloud.
https://paulbanks.org/projects/lidl-zigbee/
GNU General Public License v3.0
206 stars 66 forks source link

Revision 2 of the gateway #33

Open Dexruus opened 1 year ago

Dexruus commented 1 year ago

Less of an Issue and more of an "advice"; Revision 2 of the Lidl gateway (rounded edges) is the "exact same". Its firmware just has ssh disabled. You need to TTL onto the device and start its dropbear ssh server with;

dropbear -p "port"

From thereon you are able to ssh into the device with your given root until next restart.

Its recommended to follow the tutorial part in which you set the ssh port to "always on" and "port 22":

if [ ! -f /tuya/ssh_monitor.original.sh ]; then cp /tuya/ssh_monitor.sh /tuya/ssh_monitor.original.sh; fi

echo "#!/bin/sh" >/tuya/ssh_monitor.sh

ALSO FOR NOOBS LIKE ME;

IF:

Unable to negotiate with "ip.address" "port" : no matching host key type found. Their offer: ssh-rsa,ssh-dss

USE:

ssh -o HostKeyAlgorithms=+ssh-rsa "ip-address" -p "port"

bmix commented 3 months ago

Would you mind uploading a photo of those parts of the device where one could draw conclusions as to how to open that darn thing? How did you get it to open? Thanks!

I have the rev 2, but all instructions help is for rev 1.

GAS85 commented 3 months ago

Its firmware just has ssh disabled.

Not really, it is simply running on port 2333, this is not standard port of ssh. So, to connect you have to run command (there is no space in -p2333):

ssh -o HostKeyAlgorithms=+ssh-rsa root@<ip-address> -p2333