Jump to content

Recommended Posts

Posted

Добрый день.

Не могу подключиться к Entware по SSH. Согласно инструкции, если сервер не установлен, то указывать порт в Putty 22. Указал. Но при подключении все время выдает Connection refused. Ощущение, что инструкция неполная или сильно устарела. Собственно как можно все таки подключиться или где, что настроить, чтобы подключиться?

Posted
В 04.01.2026 в 20:46, SIY сказал:

Согласно инструкции, если сервер не установлен, то указывать порт в Putty 22

SSH порт для подключения к Entware - 222 

  • 4 weeks later...
Posted (edited)

Аналогичная проблема с подключением SSH.
В процессе установки entware (https://support.netcraze.ru/ultra/nc-1812/ru/20980-installing-the-entware-repository-on-a-usb-drive.html) застрял на этапе подключения к роутеру через putty.
Что без, что с компонентом "Сервер SSH" на портах указанных в доке или интерфейсе роутера стабильно connection refused.
По telnet связь есть, но при попытке например exec sh скидывает на авторизацию и так по кругу.
Очень интересно, но ничего непонятно :)

image.png.e9f25a4483d841777516e78f1253dc92.png

Edited by oldpilot
Posted
1 час назад, oldpilot сказал:

По telnet связь есть, но при попытке например exec sh скидывает на авторизацию и так по кругу.

Так пробовали?

 

  • Upvote 1
Posted

Мимо. У меня админ и судя по "серенькому" мне доступ к telnet/ssh по умолчанию положен. Даже не переключить. 
 

image.png

Posted (edited)

Бгыг. В процессе изучения обнаружил, что перепутал флешку и воткнул обычную, а не ext4.
Перевоткнул. Переподключил общий доступ. Заново выбрал флешку на вкладке OPCG.
В итоге по telnet таки выполнился exec sh
НО, не смотря на наличие в логе "inflating "aarch64-installer.tar.gz" и тп, ssh по прежнему не поднимается. :(
Сам дурак. Вот теперь, после успешной установки entware, наконец заработал доступ на 222. 
 

self-test_NC-1812_stable_5.00.C.4.0-1_router_2026-02-01T00-06-44.698Z.txt

Edited by oldpilot
  • 2 months later...
Posted

Добрый день. Заходил на роутер по ssh где-то полмесяца назад и проблем не было. Пароль и порт не менял. Попробовал зайти сегодня и уже не могу.

Что имею:

/ # /opt/etc/init.d/S51dropbear status
dropbear is not running
/ # ls /opt/var/run
crond.pid
/ # echo "PORT=222" > /opt/etc/config/dropbear.conf
/ # cat /opt/etc/config/dropbear.conf
PORT=222
/ # /opt/etc/init.d/S51dropbear start
/ # passwd
Changing password for root
New password:
Retype password:
passwd: password for root changed by root
/ # /opt/etc/init.d/S51dropbear status
dropbear is not running
netstat -tulpn | grep -E ':(22|222)\b'
tcp        0      0 0.0.0.0:222             0.0.0.0:*               LISTEN      10213/dropbear
tcp        0      0 :::222                  :::*                    LISTEN      10213/dropbear

Т.е. dropbear как-будто не запущен, даже когда указываю ему start. Но 222 порт dropbear слушает.
Заход под root со старым и новым паролем не работает. В логе:

Апр 19 14:17:17
ndm
Core::Server: started Session /var/run/ndm.core.socket.
Апр 19 14:17:17
ndm
Core::Authenticator: access to "cli" denied for user "root".
Апр 19 14:17:18
ndm
Core::Authenticator: access to "sftp" denied for user "root".
Апр 19 14:17:19
dropbear
Bad password attempt for 'root' from 192.168.2.140:51181
Апр 19 14:17:19
ndm
Core::Session: client disconnected.

Из замеченного. ssh сервер игнорирует настройку в dropbear.conf и берет порт из веб-конфигуратора кинетика.

  • 2 weeks later...
Posted (edited)

Поломали dropbear на последнем обновлении, так же как и busybox:

opkg install dropbear
Installing dropbear (2025.89-1) to root...
Configuring dropbear.
Generating 2048 bit rsa key, this may take a while...
Public key portion is:
ssh-rsa .....

root@localhost
Fingerprint: ...
Unknown key type 'ecdsa'
Usage: /opt/bin/dropbearkey -t <type> -f <filename> [-s bits]
-t type Type of key to generate. One of:
                rsa
                ed25519
-f filename    Use filename for the secret key.
               ~/.ssh/id_dropbear is recommended for client keys.
-s bits Key size in bits, should be a multiple of 8 (optional)
           Ed25519 has a fixed size of 256 bits
-y              Just print the publickey and fingerprint for the
                private key in <filename>.
-C              Specify the key comment (email).
Generating 256 bit ed25519 key, this may take a while...
 

После этого dropbear запускается, но не принимает ключи. Откат на старую версию 2024.86-1 решает проблему.

Edited by JohnDoe27
  • 2 weeks later...
Posted
В 29.04.2026 в 13:18, JohnDoe27 сказал:

Поломали dropbear на последнем обновлении, так же как и busybox:

opkg install dropbear
Installing dropbear (2025.89-1) to root...
Configuring dropbear.
Generating 2048 bit rsa key, this may take a while...
Public key portion is:
ssh-rsa .....

root@localhost
Fingerprint: ...
Unknown key type 'ecdsa'
Usage: /opt/bin/dropbearkey -t <type> -f <filename> [-s bits]
-t type Type of key to generate. One of:
                rsa
                ed25519
-f filename    Use filename for the secret key.
               ~/.ssh/id_dropbear is recommended for client keys.
-s bits Key size in bits, should be a multiple of 8 (optional)
           Ed25519 has a fixed size of 256 bits
-y              Just print the publickey and fingerprint for the
                private key in <filename>.
-C              Specify the key comment (email).
Generating 256 bit ed25519 key, this may take a while...
 

После этого dropbear запускается, но не принимает ключи. Откат на старую версию 2024.86-1 решает проблему.

Вы точно используете репозиторий bin.entware.net ?

А то сейчас окажется что на каком-то из зеркал версия с ecdsa осталась

  • 3 weeks later...
Posted
В 08.05.2026 в 18:43, Denis P сказал:

Вы точно используете репозиторий bin.entware.net ?

Точно, других даже не знаю

  • 2 weeks later...
Posted

Аналогичная ситуация - через Telnet пишет что запущен- доступ по SSH отвалился...

Присоединяюсь к вопросу - есть ли способ откатить версию dropbear?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies. By clicking "I accept" or continuing to browse the site, you authorize their use in accordance with the Privacy Policy.