【问题标题】:Unable to start Openssh in Windows无法在 Windows 中启动 Openssh
【发布时间】:2014-04-11 12:52:18
【问题描述】:

这是我每次在 cmd 中运行 sshd 时得到的结果。

C:\Program Files\OpenSSH\usr\sbin>sshd -d -d -d
debug2: read_server_config: filename /etc/sshd_config
debug1: sshd version OpenSSH_3.8.1p1
debug3: Not a RSA1 key file /etc/ssh_host_rsa_key.
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug3: Not a RSA1 key file /etc/ssh_host_dsa_key.
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.

我是 ssh 客户端的新手,我在我正在做的项目中使用它.. 我在http://www.worldgoneweb.com/2011/installing-openssh-on-windows-7/ 中得到了这样做的方法 如该论坛所示,我无法使用 chmod 和 chown 更改权限。 谁能帮我调试这个?! 而且当我使用 “网络启动openssh” 我收到“系统错误 5 已发生。访问被拒绝”

【问题讨论】:

  • 调试什么? SSHD 服务器已启动并正在侦听端口 22。“拒绝访问”意味着您需要管理员权限才能将其作为服务启动。

标签: windows-7 cmd openssh


【解决方案1】:

我只是在阅读同一篇文章后自己解决了这个问题。我最初也收到“系统错误 5”消息。

解决方案:以管理员身份运行cmd.exe,右键单击并选择“以管理员身份运行”

【讨论】:

  • 工作不错:我认为,现在所有的 Windows 程序都应该以管理员身份运行。 :)
猜你喜欢
  • 2020-04-01
  • 2018-10-24
  • 1970-01-01
  • 2021-10-10
  • 1970-01-01
  • 1970-01-01
  • 2017-01-12
  • 2011-10-25
  • 2011-11-29
相关资源
最近更新 更多