Страница 1 из 1
Странный ssh
Добавлено: 2008-09-26 9:42:41
Oleg_Rus
Есть роутер
А и роутер
Б
С роутер
А на
Б захожу по ssh без каких-либо проблем, а вот с роутера
Б на
А попасть не получается --
Код: Выделить всё
ats-router:[ii]:# ssh ***.***.***.***
Disconnecting: Bad packet length 1349676916.
ats-router:[ii]:# ssh -V
SSH Version OpenSSH-1.2.3, protocol version 1.5.
Compiled with SSL.
gw-router:[ii]:# ssh -V
SSH Version OpenSSH-1.2.3, protocol version 1.5.
Compiled with SSL.
Странно, что в сети не нашел конкретного описания и решения данной проблемы
Re: Странный ssh
Добавлено: 2008-09-27 8:37:29
zingel
Re: Странный ssh
Добавлено: 2008-09-27 19:32:12
Oleg_Rus
Код: Выделить всё
ats-router:[ii]:/etc/network# ssh -vv ***.****.***.***
Usage: ssh [options] host [command]
Options:
-l user Log in using this user name.
-n Redirect input from /dev/null.
-A Enable authentication agent forwarding.
-a Disable authentication agent forwarding.
-X Enable X11 connection forwarding.
-x Disable X11 connection forwarding.
-X Enable X11 connection forwarding.
-i file Identity for RSA authentication (default: ~/.ssh/identity).
-t Tty; allocate a tty even if command is given.
-v Verbose; display verbose debugging messages.
-V Display version number only.
-P Don't allocate a privileged port.
-q Quiet; don't display any warning messages.
-f Fork into background after authentication.
-e char Set escape character; ``none'' = disable (default: ~).
-c cipher Select encryption algorithm: ``3des'', ``blowfish''
-p port Connect to this port. Server must be on the same port.
-L listen-port:host:port Forward local port to remote address
-R listen-port:host:port Forward remote port to local address
These cause ssh to listen for connections on a port, and
forward them to the other side by connecting to host:port.
-C Enable compression.
-g Allow remote hosts to connect to forwarded ports.
-4 Use IPv4 only.
-6 Use IPv6 only.
-o 'option' Process the option as if it was read from a configuration file.

Re: Странный ssh
Добавлено: 2008-09-27 19:40:35
zingel
Re: Странный ssh
Добавлено: 2008-09-27 19:49:14
Oleg_Rus
Код: Выделить всё
ats-router:~# ssh -v ***.***.10.25
SSH Version OpenSSH-1.2.3, protocol version 1.5.
Compiled with SSL.
debug: Reading configuration data /etc/ssh/ssh_config
debug: Applying options for *
debug: ssh_connect: getuid 0 geteuid 0 anon 0
debug: Connecting to ***.***.10.25 [***.***.10.25] port 22.
debug: Allocated local port 623.
debug: Connection established.
Remote protocol version 1.5, remote software version OpenSSH-1.2.3
debug: Waiting for server public key.
Disconnecting: Bad packet length 1349676916.
debug: Calling cleanup 0x8056840(0x0)
Re: Странный ssh
Добавлено: 2008-09-27 20:00:13
zingel
Код: Выделить всё
Disconnecting: Bad packet length 1349676916
Re: Странный ssh
Добавлено: 2008-09-27 20:04:33
Oleg_Rus
zingel писал(а):Код: Выделить всё
Disconnecting: Bad packet length 1349676916
что, собственно, и написано в первом моем посту )))
Как победить?

Re: Странный ssh
Добавлено: 2008-09-28 18:33:12
dikens3
попробуй указать конкретный номер протокола (1,2) при подключении. (в конфигах ssh клиента это делается)
Oleg_Rus писал(а):Странно, что в сети не нашел конкретного описания и решения данной проблемы
Код: Выделить всё
http://newsgroups.derkeiler.com/Archive/Comp/comp.dcom.sys.cisco/2007-06/msg00142.html
Re: Странный ssh
Добавлено: 2008-09-28 18:41:27
Oleg_Rus
dikens3 писал(а):
попробуй указать номер протокола (1,2) при подключении.
Код: Выделить всё
ats-router:~# ssh -v -v **********
SSH Version OpenSSH-1.2.3, protocol version 1.5.
Compiled with SSL.
SSH Version OpenSSH-1.2.3, protocol version 1.5.
Compiled with SSL.
debug: Reading configuration data /etc/ssh/ssh_config
debug: Applying options for *
debug: ssh_connect: getuid 0 geteuid 0 anon 0
debug: Connecting to *********** [***.***.10.25] port 22.
debug: Allocated local port 743.
debug: Connection established.
debug: Remote protocol version 1.5, remote software version OpenSSH-1.2.3
debug: Waiting for server public key.
Disconnecting: Bad packet length 1349676916.
debug: Calling cleanup 0x8056840(0x0)
Re: Странный ssh
Добавлено: 2008-09-29 9:06:31
zingel
дай вывод своего ifconfig, у тебя или кривое mtu или проблемы с icmp.