Skip to content

Commit d58c798

Browse files
committed
不要exec
1 parent 8df7dbe commit d58c798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/open-sshd-passwd.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ echo "=== 启动 sshd 服务(端口:$SSHD_PORT) ==="
9292
# 查找 sshd 可执行文件(兼容不同系统路径)
9393
SSHD_BIN=$(which sshd || echo "/usr/sbin/sshd")
9494
# 启动并输出详细日志(-e),指定端口,传递额外参数
95-
exec "$SSHD_BIN" -e -p "$SSHD_PORT" "$@"
95+
"$SSHD_BIN" -e -p "$SSHD_PORT" "$@"

0 commit comments

Comments
 (0)