Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/runtime-smoke/operating-systems/anolis/23.4/smoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ if [ ! -x /usr/sbin/sshd ]; then
exit 1
fi

for nologin_file in /run/nologin /etc/nologin; do
if [ -e "$nologin_file" ]; then
echo "$nologin_file blocks non-root SSH logins" >&2
exit 1
fi
done

if ! /usr/sbin/sshd -T | grep -qx 'allowtcpforwarding yes'; then
echo "sshd AllowTcpForwarding is not enabled" >&2
exit 1
Expand Down
7 changes: 7 additions & 0 deletions tests/runtime-smoke/operating-systems/kylin/v10-sp3/smoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ if [ ! -x /usr/sbin/sshd ]; then
exit 1
fi

for nologin_file in /run/nologin /etc/nologin; do
if [ -e "$nologin_file" ]; then
echo "$nologin_file blocks non-root SSH logins" >&2
exit 1
fi
done

if ! /usr/sbin/sshd -T | grep -qx 'allowtcpforwarding yes'; then
echo "sshd AllowTcpForwarding is not enabled" >&2
exit 1
Expand Down
1 change: 1 addition & 0 deletions tooling/scripts/svc/configure-sshd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ exec 2>&1

mkdir -p /run/sshd
chmod 755 /run/sshd
rm -f /run/nologin /etc/nologin

if ! ls /etc/ssh/ssh_host_*_key >/dev/null 2>&1; then
if ! command -v ssh-keygen >/dev/null 2>&1; then
Expand Down