Forum Turris
Fórum Turris Nápověda

Milí majitelé routerů Turris,

toto fórum bylo 9. 12. 2016 zmrazeno a nahrazeno naším novým Turris fórem. Ještě chvíli bude dostupné k prohlížení, ale již zde není možné přispívat. Více informací naleznete v oznámení o uzavření fóra.


Dear Turris routers users,

this forum has been frozen on Dec 9th, 2016 and replaced by our new Turris forum. It will be read-only accessible for some time after. For more information, read the announcement about closing the forum.

Nahoru Téma Public (EN only) / General Discussion / Got my router today - But can't SSH into it (uzamčeno)
- - Od peter Dne 2016-10-05 21:22
Hi!

So, I got my router today :grin: :grin:
I'm so happy, it works great!!

Besides the fact, that I can't connect with SSH...
I get 'ssh: connect to host 192.168.1.1 port 22: Connection refused' everytime

What to do?
Nadřazený - - Od horada (>) Dne 2016-10-06 08:07
Nadřazený - - Od peter Dne 2016-10-06 15:48
Oh, I see!
Thanks

But I would have to do a factory reset to fix the issue?
And when done with factory reset, how do I know it's gonna work/what do I have to do differently?
Nadřazený - - Od tr3027 Dne 2016-10-06 15:54
https://www.turris.cz/doc/en/troubleshooting/erratum says:
"... or log in to Omnia via serial cable and enter the following command rm /etc/ssh/ssh_host_* to fix this issue."

By reseting the router you would loose everything you did on the box so far ...
Nadřazený - - Od peter Dne 2016-10-06 16:00
But how is that done?
Nadřazený - - Od tr3027 Dne 2016-10-06 16:13
On the original versions of Turris there is a micro-USB port for serial console access (hidden inside the box in Turris 1.0). Omnia will have such a port as well. Unfortunately I have no idea where as I'm still waiting for my box :sad: .... maybe it's one of the two USB-A ports (front/back)? To access it you'll need a console application (for example minicom on Linux or PuTTY on Windows)
Nadřazený - Od peter Dne 2016-10-06 16:20
I'll give it a try! :smile:

Thanks
Nadřazený - - Od linker Dne 2016-10-06 16:20 Hlasů 1
Another way is to let the router start. You should access http interface (luci) of the router. Enter commands to the System->Custom commands and run it from the web interface.
Nadřazený - Od peter Dne 2016-10-06 16:20
Oh yeah, that's a great idea!
Nadřazený - Od peter Dne 2016-10-06 16:33
I tried it, it didn't work.
But I get a "Command successful (Code: 0)" after the command has run.
Nadřazený - - Od peter Dne 2016-10-06 20:15
Actually, this did work!
The files was deleted, but I still can't login with SSH
Nadřazený - Od bortzmeyer.moje Dne 2016-10-15 16:21
After deleting the broken files (size 0), you have to recreate them (ssh-keygen -A) and then to start the server (/etc/init.d/sshd start).

Certainly the most painful problem I got on my Omnia!
Nadřazený - - Od achim71000 Dne 2016-10-06 19:23
As an workaround you can disable sshd in startup and install and enable the dropbear ssh server.
Nadřazený - - Od peter Dne 2016-10-06 19:58
Would that make any difference to how the router runs?
Is sshd required by anything else on the router?
Nadřazený - - Od achim71000 Dne 2016-10-06 20:06
You can login via ssh/putty delete the keys /etc/ssh/ssh_host_* and then switch back to sshd.
Nadřazený - - Od peter Dne 2016-10-06 20:18
The files was actually deleted, but I still can't login with SSH if sshd is enabled
So back to my question:
Does everything run as they should with dropbear enabled instead of sshd?
Nadřazený - - Od achim71000 Dne 2016-10-06 20:35
Did you restart the sshd service or the router after you deleted the files? They are regenerated if they do not exist from the sshd start script. Can't tell you if there are packages installed whom rely on opensshd, just received the router and started inspecting. :wink:
Nadřazený - Od peter Dne 2016-10-06 20:39
I have both the service and the router - Doesn't work
But with dropbear it works just fine

Oh, sure! Go play around with it! :grin:
Nahoru Téma Public (EN only) / General Discussion / Got my router today - But can't SSH into it (uzamčeno)

Powered by mwForum 2.29.3 © 1999-2013 Markus Wichitill