【问题标题】:Install OpenSSH Server on Windows Server 2012在 Windows Server 2012 上安装 OpenSSH 服务器
【发布时间】:2018-03-16 05:57:13
【问题描述】:

我正在尝试安装和配置 Windows Server 2012 以运行 OpenSSH 服务器。我使用的是微软的祝福版:PowerShell/Win32-OpenSSH (https://github.com/PowerShell/Win32-OpenSSH/releases)

我能够成功安装和运行 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 进入我的服务器。

谢谢。

【问题讨论】:

    标签: powershell windows-server-2012 openssh


    【解决方案1】:

    爱上了窗户……哈哈。我使用以下步骤使其工作:

    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.
    

    这么明显,我怎么没有早点想到呢!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-05-24
      • 1970-01-01
      • 2021-04-13
      • 1970-01-01
      • 2014-06-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多