我正在尝试安装和配置Windows Server 2012以运行OpenSSH服务器。我使用的是Microsoft祝福版:PowerShell / Win32-OpenSSH(https://github.com/PowerShell/Win32-OpenSSH/releases)
我能够成功安装并运行sshd。但是,当我尝试从我的osx笔记本电脑进入服务器时,我收到以下错误:
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
但我无法成功进入我的服务器。
感谢。
答案 0 :(得分: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.
这很明显,为什么我没想到这个呢!