@echo off REM Undo enable_ssh.bat: stop and disable sshd, close the debug firewall rule. net session >nul 2>&1 if %errorlevel% neq 0 ( echo Need admin rights. Relaunching elevated... powershell -NoProfile -Command "Start-Process -FilePath '%~f0' -Verb RunAs" exit /b ) echo === Stop and disable sshd === net stop sshd 2>nul sc config sshd start= disabled >nul sc query sshd | findstr STATE netsh advfirewall firewall delete rule name="docdebug-ssh" >nul echo Firewall rule docdebug-ssh removed. echo. echo === SSH access disabled === pause