#!/bin/bash
# 重启 Windows SSH Server

echo "=== 重启 SSH Server ==="
echo ""

echo "步骤 1/3: 停止 SSH Server"
net.exe stop sshd
echo "等待3秒..."
sleep 3
echo ""

echo "步骤 2/3: 启动 SSH Server"
net.exe start sshd
echo ""

echo "步骤 3/3: 验证服务状态"
powershell.exe -Command "Get-Service sshd | Select-Object Status, Name, DisplayName"
echo ""

echo "✓ SSH Server 已重启"
echo ""
echo "请立即在 Mac 上测试连接："
echo "  ssh -p 26002 houzi@82.29.54.80"
