This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Claude SSH Recovery v1 - restore sshd to working state | |
| # Source: MS Learn openssh_server_configuration (sshd auto-regenerates default sshd_config if missing) | |
| $ErrorActionPreference='Continue' | |
| $ProgressPreference='SilentlyContinue' | |
| [Net.ServicePointManager]::SecurityProtocol=3072 | |
| function Stamp($n,$ok,$msg=''){$c=if($ok){'Green'}else{'Red'};$s=if($ok){'PASS'}else{'FAIL'};$tail=if($msg){' - '+$msg}else{''};Write-Host ("[{0}] {1}{2}" -f $s,$n,$tail) -F $c} | |
| Write-Host "" | |
| Write-Host "===== Claude SSH Recovery =====" -F Cyan |