<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>31716</bug_id>
          
          <creation_ts>2016-01-19 08:31:03 +0300</creation_ts>
          <short_desc>После обновления ssh перестал цепляться к Cisco</short_desc>
          <delta_ts>2016-01-25 23:16:47 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>openssh</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Горев Андрей">nekapitan2009</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>evg</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>mike</cc>
    
    <cc>rider</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>154603</commentid>
    <comment_count>0</comment_count>
    <who name="Горев Андрей">nekapitan2009</who>
    <bug_when>2016-01-19 08:31:03 +0300</bug_when>
    <thetext>К которой ранее цеплялся без проблем. Посколько каждый день с Cisco-ми работаю 
заметил сразу же. Выглядит так:
.... no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
   До этого такого не было. Ну, не цепляться же telnet-ом по незащищённому каналу!
Где версия IOS поновее туда и не идёт. Поскольку сеть большая - напряжно.
   А вот как выгляди, если запустить ssh с ключом -v:
OpenSSH_7.1p1, OpenSSL 1.0.2e 3 Dec 2015
debug1: Reading configuration data /etc/openssh/ssh_config
debug1: /etc/openssh/ssh_config line 20: Applying options for *
debug1: Connecting to 10.135.63.12 [10.135.63.12] port 22.
debug1: Connection established.
debug1: identity file /home/-----/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/-----/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/-----/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/-----/.ssh/id_dsa-cert type -1
debug1: identity file /home/-----/.ssh/id_ecdsa type 3
debug1: key_load_public: No such file or directory
debug1: identity file /home/-----/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/-----/.ssh/id_ed25519 type 4
debug1: key_load_public: No such file or directory
debug1: identity file /home/-----/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.1
debug1: Remote protocol version 1.99, remote software version Cisco-1.25
debug1: match: Cisco-1.25 pat Cisco-1.* compat 0x60000000
debug1: Authenticating to 10.135.63.12:22 as &apos;-----&apos;
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server-&gt;client aes256-cbc hmac-sha1 none
debug1: kex: client-&gt;server aes256-cbc hmac-sha1 none
ssh: Unable to negotiate with 10.135.63.12: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

     Заметим: файл id_rsa есть, id_rsa.pub тоже есть. Специально для проверки сгенерировал id_ecdsa и id_ed25519. Та же жопа, только с другого бока!
     До обновления всё работало тики-тики!

P.S. на ----- внимания не обращайте!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154604</commentid>
    <comment_count>1</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2016-01-19 09:39:01 +0300</bug_when>
    <thetext>тут всё рассказано:
http://www.openssh.com/legacy.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154605</commentid>
    <comment_count>2</comment_count>
    <who name="Gleb F-Malinovskiy">glebfm</who>
    <bug_when>2016-01-19 11:10:03 +0300</bug_when>
    <thetext>(In reply to comment #0)
&gt; ssh: Unable to negotiate with 10.135.63.12: no matching key exchange method
&gt; found. Their offer: diffie-hellman-group1-sha1

Тут же всё цветом по фону написано -- сервер предлагает всего один key exchange method, клиент не хочет с ним работать.

Напишите в конфиг про этот хост
 KexAlgorithms +diffie-hellman-group1-sha1
Этот алгоритм теперь в ssh-клиенте по-умолчанию выключен.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154628</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2016-01-20 12:00:18 +0300</bug_when>
    <thetext>Коллеги, а как думаете, в rescue iso стоит разрешить diffie-hellman-group1-sha1
и ssh-dss?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154630</commentid>
    <comment_count>4</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2016-01-20 12:04:37 +0300</bug_when>
    <thetext>в rescue ssh не критичен, а кому нужен - тот и сам знает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154631</commentid>
    <comment_count>5</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2016-01-20 12:16:27 +0300</bug_when>
    <thetext>Я думаю, что в (потенциально стрессовых) условиях использования rescue не каждый навскидку вспомнит список изменений в openssh, поэтому я за то, чтобы разрешить.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154632</commentid>
    <comment_count>6</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2016-01-20 12:18:26 +0300</bug_when>
    <thetext>Конечно, от того, что разрешишь - ничто нигде не сломается ;)
Но сколько себя помню - не приходилось из rescue ходить по ssh, разве что из чрута установленной системы, а там уже всё и так было настроено.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154635</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2016-01-20 13:21:17 +0300</bug_when>
    <thetext>(В ответ на комментарий №6)
&gt; Но сколько себя помню - не приходилось из rescue ходить по ssh
Мне регулярно доводится вытаскивать данные наружу или, наоборот, затягивать.
В общем, постараюсь включить, т.к. согласен со мнением evg@.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154649</commentid>
    <comment_count>8</comment_count>
    <who name="Горев Андрей">nekapitan2009</who>
    <bug_when>2016-01-21 09:22:19 +0300</bug_when>
    <thetext>Ребята! РАЗРЕШАЙТЕ! В реале приходилось ходить из rescue ALTLinux по ssh! Залетели диски и доступа к другой тачке не было - пришлось запускаться с DVD и лезть управлять Cisco с rescue! Там ещё хуже ситуация была, было не до восстановления своей тачки было - там почти вся сеть лежала! А это не много и не мало порядка 60 Cisco и 20 офисов в пяти областях.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154650</commentid>
    <comment_count>9</comment_count>
    <who name="Горев Андрей">nekapitan2009</who>
    <bug_when>2016-01-21 09:24:21 +0300</bug_when>
    <thetext>Спасибо, тебе, glebfm! Твой совет оказался лучше всего! Опубликуйте его ещё и в документации - там ничего об этом нет. Только на сайте. А до сайта не всегда, как показывает практика, и долезть можно.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154715</commentid>
    <comment_count>10</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2016-01-25 23:16:47 +0300</bug_when>
    <thetext>(В ответ на комментарий №8)
&gt; Ребята! РАЗРЕШАЙТЕ! В реале приходилось ходить из rescue ALTLinux по ssh!
Сделано в mkimage-profiles 1.1.83 -- соответственно в регулярках этой недели
тоже должно быть учтено.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>