Skip to main content
ALT Linux Bugzilla
– Attachment 22762 Details for
Bug 61147
Поломка sshd_config при наличии блока Match (ошибка "Directive 'Port' is not allowed within a Match block")
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
лог journalctl
pkexec_log.txt (text/plain), 1.53 KB, created by
Сычкин Сергей Витальевич
on 2026-10-20 20:27:08 MSK
(
hide
)
Description:
лог journalctl
Filename:
MIME Type:
Creator:
Сычкин Сергей Витальевич
Created:
2026-10-20 20:27:08 MSK
Size:
1.53 KB
patch
obsolete
>Ð¾ÐºÑ 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)]
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 61147
: 22762 |
22763