Jump to content

Recommended Posts

Posted

Добрый вечер!

Прошу помочь, проконсультируйте пожалуйста. EntWare - установлен на внутреннюю память.

Дело в том, что я пытаюсь поднять туннель в EntWare, в ручном режиме всё работает прекрасно по команде: ssh -L *:1090:127.0.0.1:1088 root@51.75.ХХ.ХХ -p31099 

Установлен openssh-client, мне необходимо автоматизировать процесс, чтобы туннель поднимался автоматически при загрузке и обрыве, скрипт есть.

Но проблема с авторизацией в автоматическом режиме!

1) Если я беру openssh-client то при использовании ключей доступа происходит ошибка - Load key "/opt/root/.ssh/id_rsa": error in libcrypto. Ключи пробовал RSA и ED25519, длина ключа ситуацию также не меняет пробовал 1024, 2048, 4096.

2) Если использовать DBCLIENT, авторизация по ключу проходит и даже успевает немного данных передать (загружается текст приветствия консоли UBUNTU 20.04), но до строки не доходит, зависает сессия наглухо! Приходится закрывать вкладку в терминале.

Собственно вопрос возможно ли вообще в принципе повлиять на это, чтобы хотя бы один способ заработал?

Также подскажите пожалуйста, может есть пакет, который поможет мне автоматически пароль в скрипте передавать на сервер? Я находил в сети sshpass, но для OPKG его нет!

В общем буду рад любым комментариям, так как мне кажется я перепробовал все вариации..., надеюсь что нет. И сообщество поможет.

Заранее признателен!

  • 2 weeks later...
Posted
В 24.01.2026 в 19:26, GV1974 сказал:

Установлен openssh-client, мне необходимо автоматизировать процесс, чтобы туннель поднимался автоматически при загрузке и обрыве, скрипт есть.

Но проблема с авторизацией в автоматическом режиме!

1) Если я беру openssh-client то при использовании ключей доступа происходит ошибка - Load key "/opt/root/.ssh/id_rsa": error in libcrypto. Ключи пробовал RSA и ED25519, длина ключа ситуацию также не меняет пробовал 1024, 2048, 4096.

Здравствуйте, GV1974 !

Присоединяюсь к вопросу. А вам удалось найти какой-то путь решения в итоге?

Posted

К сожалению нет.

Но если найдете, поделитесь пожалуйста.

Posted (edited)
Quote

$ ssh root@msk ls -l /opt/root/.ssh/
-rw-------    1 root     root          1655 Jul  4  2025 authorized_keys
-rw-r--r--    1 root     root           695 Oct 12 09:42 known_hosts
 

работает, вроде...

из дебага:

Quote

debug1: Offering public key: /home/bzzz/.ssh/id_rsa RSA SHA256:Ck3iR+.................
debug1: Server accepts key: /home/bzzz/.ssh/id_rsa RSA SHA256:Ck3iR+..............

 

Edited by bzzztomas77
Posted
39 минут назад, bzzztomas77 сказал:

работает, вроде...

из дебага:

 

Добрый вечер!

Спасибо за отклик, но если я правильно понял из того, что вы привели - у вас обратная ситуация вы заходите на кинетик из интернета и авторизуетесь по ключу? верно?

Posted
25 minutes ago, GV1974 said:

Спасибо за отклик, но если я правильно понял из того, что вы привели - у вас обратная ситуация вы заходите на кинетик из интернета и авторизуетесь по ключу? верно?

кхм, значит я плохо читал и неправильно понял. да, я показывал как я захожу на кинетик.

но вот ради интереса попробовал: 

Quote

msk ~$ ssh-keygen -t ecdsa -f /opt/root/.ssh/id_dropbear
Generating 256 bit ecdsa key, this may take a while...
Public key portion is:
....

потом добавил публичный ключ в authorized_keys на линуксовой системе и зашел С кинетика:
 

Quote

msk ~$ ssh -p root@192.168.7.1

Host '192.168.7.1' is not in the trusted hosts file.
(ssh-ed25519 fingerprint ...
Do you want to continue connecting? (y/n) yes
Last login: Tue Feb  3 17:46:21 2026 from 192.168.1.63
[root@fu ~]# 
 

 

Posted
17 часов назад, bzzztomas77 сказал:

кхм, значит я плохо читал и неправильно понял. да, я показывал как я захожу на кинетик.

но вот ради интереса попробовал: 

потом добавил публичный ключ в authorized_keys на линуксовой системе и зашел С кинетика:
 

 

Спасибо! Попробую, еще раз - может ecdsa key и поможет!

Posted (edited)

Добрый день, еще раз.

Сгенерил, ключ как у вас:

~ # ssh-keygen -t ecdsa -f /opt/root/.ssh/id_dropbear
Generating public/private ecdsa key pair.
Enter passphrase for "/opt/root/.ssh/id_dropbear" (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /opt/root/.ssh/id_dropbear
Your public key has been saved in /opt/root/.ssh/id_dropbear.pub
The key fingerprint is:
SHA256:YlQo7sLgf+KAvgukHmQcXlmbJeO5oI9O7e2IYDJwZgc root@Keenetic-8690
The key's randomart image is:
+---[ECDSA 256]---+
|     + o.        |
|    = O.         |
| .E= *.          |
|+ +.o..          |
|oX+...o S        |
|B=*... .         |
|B*.+             |
|X.=oo.           |
| B+++o           |
+----[SHA256]-----+

Добавил содержимое id_dropbear.pub на сервер UBUNTU 20.04,  но что ему всё равно не хватает)

Какие будут мысли?

Спойлер

~/.ssh # ssh -vvv root@51.75.155.11 -p31099
debug1: OpenSSH_10.0p2, OpenSSL 3.5.0 8 Apr 2025
debug3: Running on Linux 4.9-ndm-5 #0 SMP Thu Jan 15 17:53:47 2026 mips
debug3: Started with: ssh -vvv root@51.75.155.11 -p31099
debug1: Reading configuration data /opt/etc/ssh/ssh_config
debug1: /opt/etc/ssh/ssh_config line 47: Applying options for 51.75.155.11
debug2: resolve_canonicalize: hostname 51.75.155.11 is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/opt/root/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/opt/root/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug3: channel_clear_timeouts: clearing
debug3: ssh_connect_direct: entering
debug1: Connecting to 51.75.155.11 [51.75.155.11] port 31099.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug1: Connection established.
debug1: identity file /opt/root/.ssh/id_rsa type -1
debug1: identity file /opt/root/.ssh/id_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_10.0
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.2p1 Ubuntu-4ubuntu0.13
debug1: compat_banner: match: OpenSSH_8.2p1 Ubuntu-4ubuntu0.13 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 51.75.155.11:31099 as 'root'
debug3: put_host_port: [51.75.155.11]:31099
debug3: record_hostkey: found key type ED25519 in file /opt/root/.ssh/known_hosts:1
debug3: record_hostkey: found key type ECDSA in file /opt/root/.ssh/known_hosts:2
debug3: load_hostkeys_file: loaded 2 keys from [51.75.155.11]:31099
debug1: load_hostkeys: fopen /opt/root/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /opt/etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /opt/etc/ssh/ssh_known_hosts2: No such file or directory
debug3: order_hostkeyalgs: have matching best-preference key type ssh-ed25519-cert-v01@openssh.com, using HostkeyAlgorithms verbatim
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,kex-strict-c-v00@openssh.com
debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
debug2: ciphers stoc: aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
debug2: MACs ctos: hmac-md5,hmac-sha1,umac-64@openssh.com
debug2: MACs stoc: hmac-md5,hmac-sha1,umac-64@openssh.com
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,kex-strict-s-v00@openssh.com
debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug3: kex_choose_conf: will use strict KEX ordering
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha1 compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha1 compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:gmKkV/UmwLpQBuxkBHQC1SsDWZp9klP/pBQSrjhEDik
debug3: put_host_port: [51.75.155.11]:31099
debug3: put_host_port: [51.75.155.11]:31099
debug3: record_hostkey: found key type ED25519 in file /opt/root/.ssh/known_hosts:1
debug3: record_hostkey: found key type ECDSA in file /opt/root/.ssh/known_hosts:2
debug3: load_hostkeys_file: loaded 2 keys from [51.75.155.11]:31099
debug1: load_hostkeys: fopen /opt/root/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /opt/etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /opt/etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host '[51.75.155.11]:31099' is known and matches the ED25519 host key.
debug1: Found key in /opt/root/.ssh/known_hosts:1
debug3: send packet: type 21
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug2: ssh_set_newkeys: mode 1
debug1: rekey out after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug2: ssh_set_newkeys: mode 0
debug1: rekey in after 4294967296 blocks
debug2: KEX algorithms: mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,kex-strict-c-v00@openssh.com
debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
debug2: ciphers stoc: aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
debug2: MACs ctos: hmac-md5,hmac-sha1,umac-64@openssh.com
debug2: MACs stoc: hmac-md5,hmac-sha1,umac-64@openssh.com
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug3: kex_input_ext_info: extension server-sig-algs
debug1: kex_ext_info_client_parse: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Will attempt key: /opt/root/.ssh/id_rsa 
debug2: pubkey_prepare: done
debug1: Trying private key: /opt/root/.ssh/id_rsa
debug3: no such identity: /opt/root/.ssh/id_rsa: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
root@51.75.155.11's password: 

 

Edited by GV1974
Увидел ошибку
Posted
9 minutes ago, GV1974 said:

Добавил содержимое id_dropbear.pub на сервер UBUNTU 20.04,  но что ему всё равно не хватает)

 

ssh -V должен показать какие ключи он пробовал.. возможно .ssh и/или .ssh/authorized_keys на убунту с дефолтными правами, нужно сделать chmod o=,g= -R .ssh

 

Posted

На кинетике

Спойлер

~ # ls -la /opt/root/.ssh/
drwx------    3 root     root           512 Feb  4 12:48 .
drwxr-xr-x    3 root     root           512 Jan 19 17:42 ..
-rw-------    1 root     root           513 Feb  4 12:39 id_dropbear
-rw-------    1 root     root           180 Feb  4 12:39 id_dropbear.pub
-rw-------    1 root     root           378 Jan 22 13:38 known_hosts
-rw-------    1 root     root           102 Jan 19 17:42 known_hosts.old
drwx------    2 root     root           376 Jan 21 14:27 ssh

На сервере

Спойлер

root@gurin-4902:~# ls -la /root/.ssh/
total 16
drwx------  2 root root 4096 Feb  4 12:43 .
drwx------ 15 root root 4096 Jan 22 13:34 ..
-rw-------  1 root root 1158 Feb  4 12:43 authorized_keys
-rw-------  1 root root  222 May  6  2025 known_hosts

Пока также

Спойлер

debug1: OpenSSH_10.0p2, OpenSSL 3.5.0 8 Apr 2025
debug3: Running on Linux 4.9-ndm-5 #0 SMP Thu Jan 15 17:53:47 2026 mips
debug3: Started with: ssh -vvv root@51.75.155.11 -p31099
debug1: Reading configuration data /opt/etc/ssh/ssh_config
debug1: /opt/etc/ssh/ssh_config line 47: Applying options for 51.75.155.11
debug2: resolve_canonicalize: hostname 51.75.155.11 is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/opt/root/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/opt/root/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug3: channel_clear_timeouts: clearing
debug3: ssh_connect_direct: entering
debug1: Connecting to 51.75.155.11 [51.75.155.11] port 31099.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug1: Connection established.
debug1: identity file /opt/root/.ssh/id_rsa type -1
debug1: identity file /opt/root/.ssh/id_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_10.0
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.2p1 Ubuntu-4ubuntu0.13
debug1: compat_banner: match: OpenSSH_8.2p1 Ubuntu-4ubuntu0.13 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 51.75.155.11:31099 as 'root'
debug3: put_host_port: [51.75.155.11]:31099
debug3: record_hostkey: found key type ED25519 in file /opt/root/.ssh/known_hosts:1
debug3: record_hostkey: found key type ECDSA in file /opt/root/.ssh/known_hosts:2
debug3: load_hostkeys_file: loaded 2 keys from [51.75.155.11]:31099
debug1: load_hostkeys: fopen /opt/root/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /opt/etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /opt/etc/ssh/ssh_known_hosts2: No such file or directory
debug3: order_hostkeyalgs: have matching best-preference key type ssh-ed25519-cert-v01@openssh.com, using HostkeyAlgorithms verbatim
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,kex-strict-c-v00@openssh.com
debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
debug2: ciphers stoc: aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
debug2: MACs ctos: hmac-md5,hmac-sha1,umac-64@openssh.com
debug2: MACs stoc: hmac-md5,hmac-sha1,umac-64@openssh.com
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,kex-strict-s-v00@openssh.com
debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug3: kex_choose_conf: will use strict KEX ordering
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha1 compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha1 compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:gmKkV/UmwLpQBuxkBHQC1SsDWZp9klP/pBQSrjhEDik
debug3: put_host_port: [51.75.155.11]:31099
debug3: put_host_port: [51.75.155.11]:31099
debug3: record_hostkey: found key type ED25519 in file /opt/root/.ssh/known_hosts:1
debug3: record_hostkey: found key type ECDSA in file /opt/root/.ssh/known_hosts:2
debug3: load_hostkeys_file: loaded 2 keys from [51.75.155.11]:31099
debug1: load_hostkeys: fopen /opt/root/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /opt/etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /opt/etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host '[51.75.155.11]:31099' is known and matches the ED25519 host key.
debug1: Found key in /opt/root/.ssh/known_hosts:1
debug3: send packet: type 21
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug2: ssh_set_newkeys: mode 1
debug1: rekey out after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug2: ssh_set_newkeys: mode 0
debug1: rekey in after 4294967296 blocks
debug2: KEX algorithms: mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,kex-strict-c-v00@openssh.com
debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
debug2: ciphers stoc: aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
debug2: MACs ctos: hmac-md5,hmac-sha1,umac-64@openssh.com
debug2: MACs stoc: hmac-md5,hmac-sha1,umac-64@openssh.com
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug3: kex_input_ext_info: extension server-sig-algs
debug1: kex_ext_info_client_parse: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Will attempt key: /opt/root/.ssh/id_rsa 
debug2: pubkey_prepare: done
debug1: Trying private key: /opt/root/.ssh/id_rsa
debug3: no such identity: /opt/root/.ssh/id_rsa: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
root@51.75.155.11's password: 

 

Posted

в логах не видно, чтобы ваш ssh клиент использовал ключ id_dropbear , попробуйте его явно указать

 

Posted
9 минут назад, bzzztomas77 сказал:

в логах не видно, чтобы ваш ssh клиент использовал ключ id_dropbear , попробуйте его явно указать

 

ssh -vvv -i /opt/root/.ssh/id_dropbear root@51.75.155.11 -p31099

Если указать полный путь до ключа, то всё работает!

Спасибо огромное!

Вопрос закрыт.

 

 

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.