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

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

    <bug>
          <bug_id>55742</bug_id>
          
          <creation_ts>2025-08-27 15:51:02 +0300</creation_ts>
          <short_desc>включить поддержку keyboard-interactive в ssh-клиенте по умолчанию</short_desc>
          <delta_ts>2025-10-11 23:04:33 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Branch p11</product>
          <component>openssh</component>
          <version>unspecified</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Андрей Сурганов">as</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>cas</cc>
          
          <qa_contact name="qa-p11@altlinux.org">qa-p11</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>271488</commentid>
    <comment_count>0</comment_count>
    <who name="Андрей Сурганов">as</who>
    <bug_when>2025-08-27 15:51:02 +0300</bug_when>
    <thetext>Невозможно подключиться по ssh к некоторым серверам (в частности под управлением Gentoo / Calculate Linux). 
Проблема замечена в продуктах 11 платформы, в &quot;Simply Linux&quot; и &quot;ALT Workstation&quot; подключение из 10 платформы работает штатно.
При попытке подключиться можно принять удалённый ключ, а после этого вместо запроса пароля идёт отлуп.
До 1 сентября 2025 я открыл тестовый доступ к такому &quot;проблемному&quot; серверу по ssh: user: ct25z90, host: quiz.cactux.ru, port: 2235, pass: PleaseAllow$$H
Пожалуйста, почините.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>271493</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2025-08-27 16:23:32 +0300</bug_when>
    <thetext>The authenticity of host &apos;[quiz.cactux.ru]:2235 ([45.80.47.9]:2235)&apos; can&apos;t be established.
ED25519 key fingerprint is SHA256:Z6Zyf+dc8RqUObZGEbwxcWefzY7P6R+JzFlXf0u/CBM.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added &apos;[quiz.cactux.ru]:2235&apos; (ED25519) to the list of known hosts.
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: Sending SSH2_MSG_EXT_INFO
debug1: expecting SSH2_MSG_NEWKEYS
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_ext_info_client_parse: server-sig-algs=&lt;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&gt;
debug1: kex_ext_info_check_ver: publickey-hostbound@openssh.com=&lt;0&gt;
debug1: kex_ext_info_check_ver: ping@openssh.com=&lt;0&gt;
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_ext_info_client_parse: server-sig-algs=&lt;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&gt;
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Will attempt key: /home/user/.ssh/id_ed25519 
debug1: Will attempt key: /home/user/.ssh/id_ed25519_sk 
debug1: Will attempt key: /home/user/.ssh/id_rsa 
debug1: Will attempt key: /home/user/.ssh/id_ecdsa 
debug1: Will attempt key: /home/user/.ssh/id_ecdsa_sk 
debug1: Will attempt key: /home/user/.ssh/id_dsa 
debug1: Will attempt key: /home/user/.ssh/id_xmss 
debug1: Trying private key: /home/user/.ssh/id_ed25519
debug1: Trying private key: /home/user/.ssh/id_ed25519_sk
debug1: Trying private key: /home/user/.ssh/id_rsa
debug1: Trying private key: /home/user/.ssh/id_ecdsa
debug1: Trying private key: /home/user/.ssh/id_ecdsa_sk
debug1: Trying private key: /home/user/.ssh/id_dsa
debug1: Trying private key: /home/user/.ssh/id_xmss
debug1: No more authentication methods to try.
ssh: ct25z90@quiz.cactux.ru: Permission denied (publickey,keyboard-interactive).

При доступе к альтовому ssh:
debug1: Authentications that can continue: publickey,gssapi-with-mic,password</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>271495</commentid>
    <comment_count>2</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2025-08-27 16:28:00 +0300</bug_when>
    <thetext>На p10 (OpenSSH_7.9p1)
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/user/.ssh/id_ed25519
debug1: Trying private key: /home/user/.ssh/id_rsa
debug1: Trying private key: /home/user/.ssh/id_ecdsa
debug1: Trying private key: /home/user/.ssh/id_dsa
debug1: Trying private key: /home/user/.ssh/id_xmss
debug1: Next authentication method: keyboard-interactive
Password:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>271496</commentid>
    <comment_count>3</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2025-08-27 16:31:10 +0300</bug_when>
    <thetext>На Fedora версия OpenSSH_9.9p1 работает с добавленным в 8ой версии промптом:
(ct25z90@quiz.cactux.ru) Password:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>271505</commentid>
    <comment_count>4</comment_count>
    <who name="Андрей Сурганов">as</who>
    <bug_when>2025-08-27 18:21:26 +0300</bug_when>
    <thetext>На сервере, куда не подключиться: Gentoo Linux, openssh 9.8 с флагами сборки: kerberos pam pie ssl

cat /etc/ssh/sshd_config | sed -e &quot;/^#/d&quot; -e &quot;/^$/d&quot;
PasswordAuthentication no
UsePAM yes
PrintMotd no
PrintLastLog no
Subsystem	sftp	/usr/lib64/misc/sftp-server
AcceptEnv LANG LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME LANGUAGE LC_ADDRESS LC_IDENTIFICATION LC_MEASUREMENT LC_NAME LC_PAPER LC_TELEPHONE
AcceptEnv COLORTERM
DenyUsers netacad

============================================
Второй сервер: Calculate Linux, openssh 10.0, флаги компиляции: pam pie ssl

cat /etc/ssh/sshd_config /etc/ssh/sshd_config.d/*.conf | sed -e &quot;/^#/d&quot; -e &quot;/^$/d&quot;
LoginGraceTime 2m
MaxAuthTries 6
MaxSessions 10
Subsystem	sftp	/usr/lib64/misc/sftp-server
Include &quot;/etc/ssh/sshd_config.d/*.conf&quot;
UsePAM yes
PasswordAuthentication no
PrintMotd no
PrintLastLog no
Subsystem	sftp	/usr/lib64/misc/sftp-server
AcceptEnv LANG LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME LANGUAGE LC_ADDRESS LC_IDENTIFICATION LC_MEASUREMENT LC_NAME LC_PAPER LC_TELEPHONE
AcceptEnv COLORTERM</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272902</commentid>
    <comment_count>5</comment_count>
    <who name="Gleb F-Malinovskiy">glebfm</who>
    <bug_when>2025-09-22 13:23:21 +0300</bug_when>
    <thetext>KbdInteractiveAuthentication сейчас отключено по умолчанию, но его можно включить в командной строке или конфигурационном файле.
Но я согласен, что дефолт надо поменять.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272914</commentid>
    <comment_count>6</comment_count>
    <who name="Андрей Сурганов">as</who>
    <bug_when>2025-09-22 15:36:52 +0300</bug_when>
    <thetext>(Ответ для Gleb F-Malinovskiy на комментарий #5)
&gt; KbdInteractiveAuthentication сейчас отключено по умолчанию, но его можно
&gt; включить в командной строке или конфигурационном файле.
&gt; Но я согласен, что дефолт надо поменять.

KbdInteractiveAuthentication это настройка для ssh сервера. У нас же проблема, что ssh клиент не подключается.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272920</commentid>
    <comment_count>7</comment_count>
    <who name="Андрей Сурганов">as</who>
    <bug_when>2025-09-22 16:04:57 +0300</bug_when>
    <thetext>А вот из Remmina подключение проходит штатно. Т.е. проблема, действительно, скорее всего где-то в клиенте.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272981</commentid>
    <comment_count>8</comment_count>
    <who name="Андрей Сурганов">as</who>
    <bug_when>2025-09-23 14:00:53 +0300</bug_when>
    <thetext>Как временное решение, создал алиас ssh на dbclient (Dropbear). Но всё равно, почините, пожалуйста.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>273147</commentid>
    <comment_count>9</comment_count>
    <who name="Gleb F-Malinovskiy">glebfm</who>
    <bug_when>2025-09-25 12:57:06 +0300</bug_when>
    <thetext>(In reply to Андрей Сурганов from comment #6)
&gt; KbdInteractiveAuthentication это настройка для ssh сервера. У нас же
&gt; проблема, что ssh клиент не подключается.

Нет, кончено, это настройка и для ssh-клиента тоже. К вашему серверу можно подключиться просто добавив -o KbdInteractiveAuthentication=yes в командную строку или конфигурационный файл.
Вы столкнулись с неожиданными дефолтами, а не _ошибкой_ в программе.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>273152</commentid>
    <comment_count>10</comment_count>
    <who name="Андрей Сурганов">as</who>
    <bug_when>2025-09-25 13:45:02 +0300</bug_when>
    <thetext>Да, благодарю. Всё заработало.
echo &quot;KbdInteractiveAuthentication yes&quot; &gt; /etc/openssh/ssh_config</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>273153</commentid>
    <comment_count>11</comment_count>
    <who name="Андрей Сурганов">as</who>
    <bug_when>2025-09-25 13:46:14 +0300</bug_when>
    <thetext>Вернее так:
echo &quot;KbdInteractiveAuthentication yes&quot; &gt;&gt; /etc/openssh/ssh_config</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274249</commentid>
    <comment_count>12</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-10-11 23:04:33 +0300</bug_when>
    <thetext>openssh-9.6p1-alt5 -&gt; p11:

Mon Oct 06 2025 Gleb F-Malinovskiy &lt;glebfm@altlinux&gt; 9.6p1-alt5
- ssh: enable KbdInteractiveAuthentication by default (ALT#55742).
- sshd: backported upstream fix for DisableForwarding which did not disable X11
  or agent forwarding as documented (fixes CVE-2025-32728).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>