From e01eb5db9c1c67d3eca948589ca058357419b289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B1=84=EB=AC=B8=EC=B0=BD=40MBA?= Date: Mon, 21 Sep 2026 08:14:58 +0900 Subject: [PATCH] =?UTF-8?q?openssh=20server=20=EC=84=A4=EC=B9=98=20?= =?UTF-8?q?=EC=BD=94=EB=A9=98=ED=8A=B8=20=EC=95=84=EC=9B=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install-tmux.ps1 | 54 ++++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/install-tmux.ps1 b/install-tmux.ps1 index 647cb09..a1422db 100644 --- a/install-tmux.ps1 +++ b/install-tmux.ps1 @@ -48,34 +48,34 @@ function ErrExit { Write-Host "[ERROR] $args" -ForegroundColor Red; exit 1 } $ConfFile = Join-Path $env:USERPROFILE '.tmux.conf' # ──────────────────────────────────────────── -# Step 0: Ensure OpenSSH Server +# Step 0: Ensure OpenSSH Server (비활성화됨) # ──────────────────────────────────────────── -Info "Checking OpenSSH Server installation status..." -$sshService = Get-Service -Name "sshd" -ErrorAction SilentlyContinue - -if (-not $sshService) { - Info "OpenSSH Server is not installed. Attempting installation..." - - # OpenSSH Server 기능 추가 (관리자 권한 필요) - try { - $capability = Get-WindowsCapability -Online -Name "OpenSSH.Server~~~~0.0.1.0" - if ($capability.State -ne "Installed") { - Info "Installing OpenSSH Server via Windows Optional Features..." - Add-WindowsCapability -Online -Name "OpenSSH.Server~~~~0.0.1.0" > $null - Success "OpenSSH Server feature added successfully." - } - - # sshd 서비스 시작 및 자동 실행 설정 - Set-Service -Name "sshd" -StartupType Automatic - Start-Service -Name "sshd" - Success "OpenSSH Server (sshd) service started and configured as Automatic startup." - } catch { - Warn "Failed to auto-install OpenSSH Server: $_" - Warn "This operation may require Administrator privileges." - } -} else { - Success "OpenSSH Server is already installed." -} +# Info "Checking OpenSSH Server installation status..." +# $sshService = Get-Service -Name "sshd" -ErrorAction SilentlyContinue +# +# if (-not $sshService) { +# Info "OpenSSH Server is not installed. Attempting installation..." +# +# # OpenSSH Server 기능 추가 (관리자 권한 필요) +# try { +# $capability = Get-WindowsCapability -Online -Name "OpenSSH.Server~~~~0.0.1.0" +# if ($capability.State -ne "Installed") { +# Info "Installing OpenSSH Server via Windows Optional Features..." +# Add-WindowsCapability -Online -Name "OpenSSH.Server~~~~0.0.1.0" > $null +# Success "OpenSSH Server feature added successfully." +# } +# +# # sshd 서비스 시작 및 자동 실행 설정 +# Set-Service -Name "sshd" -StartupType Automatic +# Start-Service -Name "sshd" +# Success "OpenSSH Server (sshd) service started and configured as Automatic startup." +# } catch { +# Warn "Failed to auto-install OpenSSH Server: $_" +# Warn "This operation may require Administrator privileges." +# } +# } else { +# Success "OpenSSH Server is already installed." +# } # ────────────────────────────────────────────