1. [Wiki](https://feex.it/wiki/)
2. [處理程序](https://feex.it/wiki/process/)
3. [Windows 處理序](https://feex.it/wiki/process/windows/)
4. ssh.exe

# ssh.exe

Windows 處理程序: Microsoft Corporation

目錄搜尋詞 ssh, openssh client, windows ssh

Windows, 系統元件

隨附於 System32\OpenSSH 的 OpenSSH 用戶端。它不是 sshd (伺服器端)，也不是 WSL 發行版本內部的 ssh 二進位檔。

## 您需要瞭解的資訊

這是 SSH 用戶端，不是 sshd，也不是 WSL ssh。

位於 System32\OpenSSH 中的 ssh.exe 是 Windows OpenSSH 用戶端。sshd.exe 則是選用的 OpenSSH Server。Ubuntu 內部的 Linux \`ssh\` 是發行版本中的不同檔案 (主機端視圖：WSL 程序 / vmmemWSL)。結束此用戶端僅會中斷該次對外工作階段。

- **是否安全？**: 請檢查正在執行的檔案路徑、簽章與發行者。單憑名稱無法確定安全性。

  **與 sshd 相同嗎？**: 不是。這是用戶端

  **與 WSL ssh 相同嗎？**: 不同。那是發行版本中的 Linux ssh

Feex 指出

如果我是從 PowerShell 啟動 ssh，該程序應為 System32\OpenSSH\ssh.exe。除非此電腦擔任伺服器，否則我不會停止 sshd，也不會為了終止 Windows 用戶端而執行 wsl --shutdown。

## 什麼是 ssh.exe？

這是 SSH 用戶端，不是 sshd，也不是 WSL ssh。內建路徑為 System32\OpenSSH\ssh.exe。選用功能伺服器為 sshd。Ubuntu 終端機內使用的是 Linux ssh，而非此映像檔。

## 它的作用是什麼？

它會開啟對外的 SSH 工作階段。它不會作為伺服器接聽埠號，也不會啟動 WslService。

## 為什麼它正在執行？

是您、Git、VS Code Remote-SSH 或某個指令碼呼叫了 Windows 用戶端。若此電腦在連接埠 22 處於接聽狀態，那是 sshd 或其他伺服器，而非此程序。

## 檢查執行中的處理序

在 Windows PowerShell 中，此唯讀查詢會列出此 PC 上符合條件的處理序 ID、建立時間和可執行檔路徑。

`Get-CimInstance -ClassName Win32_Process | Where-Object { $_.Name -eq 'ssh.exe' } | Select-Object ProcessId, ParentProcessId, CreationDate, Name, ExecutablePath | Format-List`

無結果或無法存取的路徑是無法確定的。受保護的處理序可能會限制存取，處理序 ID 也可能被重複使用。請將個人路徑保留在本地。

使用 [檔案識別指南](https://feex.it/wiki/l/zh-hant/software/system/verify-executable-path-signature/) 來比較簽章和產品中繼資料。僅憑檔案名稱無法確定安全性。

## 它是否安全？

驗證此執行中的檔案

System32\OpenSSH\ssh.exe 是 Microsoft OpenSSH 用戶端。位於 Downloads 的 ssh.exe 則不是。這仍然不是 sshd，也不是 WSL 中的 /usr/bin/ssh。

將記錄的位置與實際檔案進行比較。熟悉的資料夾本身無法確定識別。

`C:\Windows\System32\OpenSSH\ssh.exe`

- OpenSSH Client 選用功能
- 伺服器對應檔案：sshd.exe，非此檔案
- WSL 對應檔案：發行版本內部的 Linux ssh

## 我可以結束它嗎？

中斷該 SSH 工作階段

結束 ssh.exe 會中斷該用戶端連線。此電腦上的 sshd 可繼續接聽。WSL 中的 ssh 工作階段則是發行版本內部的不同程序。

## 我可以移除它嗎？

請至選用功能設定，而非檔案總管

若您想移除此元件，請從「選用功能」關閉 OpenSSH Client。切勿刪除 System32\OpenSSH。解除安裝 WSL 不會移除此用戶端。切勿透過移除 sshd 來刪除用戶端。

## 它應該隨 Windows 啟動嗎？

指令碼可以啟動它。OpenSSH Server 的自動啟動項目是 sshd，而非此用戶端。

## 測量資源使用量

| CPU 和記憶體 | 比較相同 PID 和工作負載的幾項觀察結果。此項目沒有獨立測量的通用基準。    |
| -------- | ---------------------------------------- |
| 磁碟和網路    | 將活動歸因於實際的處理序和目前的任務；僅憑檔案名稱無法確定預期的目的地或傳輸量。 |

## 檔案資訊

| 可執行檔名稱  | ssh.exe                             |
| ------- | ----------------------------------- |
| 記錄的安裝路徑 | C:\Windows\System32\OpenSSH\ssh.exe |
| 發行者     | Microsoft Corporation               |
| 簽章檢查    | 檢查實際檔案；此項目不證明其憑證識別。                 |

## 常見問題

### 使用者為了停止對外的 Git fetch 而停用 OpenSSH Server

是 Git 呼叫了用戶端。sshd 從未參與該工作階段。請結束 ssh.exe 或終止 Git 命令。

### 在 WSL 中進行遠端連線，使用者卻結束了此 Windows ssh.exe

Linux ssh 位於發行版本內部。主機端記憶體顯示為 vmmemWSL。此路徑則為 System32\OpenSSH。

## 疑難排解

在進行任何具破壞性的變更之前，請先進行診斷。

### where.exe ssh 以及完整路徑

System32\OpenSSH\ssh.exe 是本文討論的對象。位於 \\\wsl.localhost 底下的路徑為 WSL ssh。sshd.exe 則是伺服器端。

### 選用功能：OpenSSH Client 與 OpenSSH Server

若找不到執行檔，請修復用戶端功能。切勿直接從 System32 刪除檔案。

## 技術詳細資訊

技術詳細資訊

| 映像名稱 | ssh.exe             |
| ---- | ------------------- |
| 角色   | Windows OpenSSH 用戶端 |

## 檢查執行中檔案的身分

僅憑檔案名稱無法確定安全性。請驗證實際路徑、簽章和產品識別。

## 相關項目

這些實體與本文連結。每個連結上都會顯示類型。

[wsl.exe: Windows 處理程序](https://feex.it/wiki/l/zh-hant/process/wsl.exe/)[cmd.exe: 應用程式處理程序](https://feex.it/wiki/l/zh-hant/process/cmd.exe/)[pwsh.exe: 應用程式處理程序](https://feex.it/wiki/l/zh-hant/process/pwsh.exe/)[檢查可執行檔路徑和數位簽章: 指南](https://feex.it/wiki/l/zh-hant/software/system/verify-executable-path-signature/)[閱讀工作管理員並比較處理序活動: 指南](https://feex.it/wiki/l/zh-hant/software/system/how-to-read-task-manager/)[Windows 處理序: 類別](https://feex.it/wiki/process/windows/)

## 來源與驗證

記錄的來源標籤：2026年8月。此標籤不代表獨立驗證。 [我們的研究方式](https://feex.it/wiki/research/).

- [Microsoft Learn：OpenSSH 概觀 ](https://learn.microsoft.com/windows-server/administration/openssh/openssh-overview)· Windows 隨附 OpenSSH 用戶端與選用伺服器
- [Microsoft Learn：OpenSSH 用戶端 ](https://learn.microsoft.com/windows-server/administration/openssh/openssh-client)· ssh.exe 是位於 System32\OpenSSH 的用戶端
- [Foxhole 處理程序圖譜 ](https://foxhole.feex.it/)· 來自 Windows 電腦的第一手樣本。非實驗室基準測試。
- [Microsoft Sysinternals: Sigcheck ](https://learn.microsoft.com/en-us/sysinternals/downloads/sigcheck)· 說明如何檢查檔案簽章。此參考資料並不代表特定執行中檔案的身分或安全性。
- [Microsoft：Get-CimInstance ](https://learn.microsoft.com/en-us/powershell/module/cimcmdlets/get-ciminstance)· 唯讀的本機處理序查詢方法。
- [Microsoft：Win32_Process 屬性 ](https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-process)· 記錄處理序 ID、可執行檔路徑、建立日期和父處理序 ID 重複使用。

## 這篇文章實用嗎？

只要回答「是」或「否」即可。您也可以依意願選擇原因，或附上簡短說明。

速覽

本頁面的簡短身分識別。規格、來源和完整說明保留在文章中。

- **類型**: Windows 處理程序

  **發行者**: Microsoft Corporation

  **可執行檔**: ssh.exe

  **典型路徑**: C:\Windows\System32\OpenSSH\ssh.exe

  **記錄內容**: Feex Wiki 參考項目

記錄的來源狀態：Feex 已審核: 記錄的來源標籤：2026年8月。此標籤不代表獨立驗證。

---

Source: [Canonical Feex Wiki page](https://feex.it/wiki/l/zh-hant/process/ssh.exe/)

[Developer guide](https://feex.it/wiki/developers/) | [API policy](https://feex.it/developers/api-policy/) | [Agent guidance](https://feex.it/wiki/llms.txt)
