окт 20 18:51:03 kworkstation-11-4-x86-64-legacy-ext4-20261013.localdomain pkexec[6444]: test: Executing command [USER=root] [TTY=unknown] [CWD=/home/test] [COMMAND=/usr/bin/sh -c conf=$(test -f /etc/openssh/sshd_config && echo /etc/openssh/sshd_config || echo /etc/ssh/sshd_config); cp -a "$conf" "$conf.altcenter.bak"; sed -i -E '/^[[:space:]]*#?[[:space:]]*PermitRootLogin([[:space:]]+|$)/Id' "$conf"; echo 'PermitRootLogin without-password' >> "$conf"; sed -i -E '/^[[:space:]]*#?[[:space:]]*PermitEmptyPasswords([[:space:]]+|$)/Id' "$conf"; echo 'PermitEmptyPasswords yes' >> "$conf"; sed -i -E '/^[[:space:]]*#?[[:space:]]*HostbasedAuthentication([[:space:]]+|$)/Id' "$conf"; echo 'HostbasedAuthentication yes' >> "$conf"; sed -i -E '/^[[:space:]]*#?[[:space:]]*IgnoreRhosts([[:space:]]+|$)/Id' "$conf"; echo 'IgnoreRhosts no' >> "$conf"; sed -i -E '/^[[:space:]]*#?[[:space:]]*AllowUsers([[:space:]]+|$)/Id' "$conf"; sed -i -E '/^[[:space:]]*#?[[:space:]]*AllowGroups([[:space:]]+|$)/Id' "$conf"; sed -i -E '/^[[:space:]]*#?[[:space:]]*Port([[:space:]]+|$)/Id' "$conf"; echo 'Port 23' >> "$conf"; sed -i -E '/^[[:space:]]*#?[[:space:]]*ClientAliveInterval([[:space:]]+|$)/Id' "$conf"; echo 'ClientAliveInterval 0' >> "$conf"; sed -i -E '/^[[:space:]]*#?[[:space:]]*ClientAliveCountMax([[:space:]]+|$)/Id' "$conf"; echo 'ClientAliveCountMax 3' >> "$conf"; sshd -t -f "$conf" && cp "$conf" /tmp/altcenter_sshd_config && chmod 644 /tmp/altcenter_sshd_config && (systemctl reload sshd || systemctl reload ssh || systemctl restart sshd || systemctl restart ssh)]