2017-10-04 195 views
0

我正在嘗試安裝和配置Windows Server 2012以運行OpenSSH服務器。我使用微軟的祝福版本:PowerShell/Win32-OpenSSH(https://github.com/PowerShell/Win32-OpenSSH/releases在Windows Server 2012上安裝OpenSSH服務器

我能夠安裝併成功運行sshd。然而,當我試圖從我的OSX的筆記本電腦ssh到服務器,我發現了以下錯誤:

packet_write_wait: Connection to 10.232.37.104 port 22: Broken pipe 

有沒有人有一個Windows服務器上成功安裝OpenSSH服務器成功?

我加了一個防火牆規則,並驗證它是開放使用的nmap:

$> sudo nmap -sS -O 10.232.37.104 
Starting Nmap 7.00 (https://nmap.org) at 2017-10-04 14:19 EDT 
Nmap scan report for 10.232.37.104 
Host is up (0.023s latency). 
Not shown: 988 closed ports 
PORT  STATE SERVICE 
22/tcp open  ssh 

但我無法成功ssh到我的服務器。

謝謝。

回答

0

得愛窗戶......大聲笑。我得到它的工作使用以下步驟:

https://github.com/PowerShell/Win32-OpenSSH/issues/690 
You need to provide your account the following privilege "Replace a process 
level token" 
secpol.msc 
LocalPolicies -> User Rights Assignment 
Click the policy that says "Replace a process level token" and add your 
account. Log off and log in. 

這是如此明顯,爲什麼我沒有想到這一點!

相關問題