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

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

    <bug>
          <bug_id>38098</bug_id>
          
          <creation_ts>2020-02-14 23:41:07 +0300</creation_ts>
          <short_desc>pvecm create MIAC изменяет sshd_config</short_desc>
          <delta_ts>2022-02-17 22:48:16 +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>pve-cluster</component>
          <version>unstable</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="Vitaly Lipatov">lav</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>aen</cc>
    
    <cc>darisishe</cc>
    
    <cc>shaba</cc>
    
    <cc>shrek</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>187869</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-02-14 23:41:07 +0300</bug_when>
    <thetext>После выполнения
# pvecm create MIAC
обнаружил, что /etc/openssh/sshd_config изменён в худшую сторону.
--- a/openssh/sshd_config
+++ b/openssh/sshd_config
@@ -41,7 +41,7 @@
 # Authentication:
 
 #LoginGraceTime 2m
-PermitRootLogin without-password
+PermitRootLogin yes

Код здесь:
/usr/share/perl5/PVE/Cluster.pm

sub setup_sshd_config {
    my () = @_;

    my $conf = PVE::Tools::file_get_contents($sshd_config_fn);

    return if $conf =~ m/^PermitRootLogin\s+yes\s*$/m;

    if ($conf !~ s/^#?PermitRootLogin.*$/PermitRootLogin yes/m) {
&lt;------&gt;chomp $conf;
&lt;------&gt;$conf .= &quot;\nPermitRootLogin yes\n&quot;;
    }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190956</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2020-07-06 21:15:06 +0300</bug_when>
    <thetext>В сизиф отправлен пакет control-sshd-permit-root-login, который частично поможет решить это проблему.
После добавления всех нод, можно выключить парольный доступ с помощью control.
Если надо добавить ноду, то можно временно включить парольный доступ, а потом выключить.

Такое решение устроит для закрытия баги?
В server-v этот пакет в установку вместе с PVE.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190957</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-07-06 23:47:24 +0300</bug_when>
    <thetext>(Ответ для Alexey Shabalin на комментарий #1)
&gt; В сизиф отправлен пакет control-sshd-permit-root-login, который частично
&gt; поможет решить это проблему.
&gt; После добавления всех нод, можно выключить парольный доступ с помощью
&gt; control.
&gt; Если надо добавить ноду, то можно временно включить парольный доступ, а
&gt; потом выключить.
&gt; 
&gt; Такое решение устроит для закрытия баги?
Если от паролей не деться, то да.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>