如何使用Cygwin在Windows上运行OpenSSH SSHD服务器

记录几款非常有趣, 但不怎么耳熟的软件:

Cygwin 是可以安装 OpenSSH server 和 client 的, Mosh 也可以, 这对于 Linux 用户而言就非常方便了.

如何使用Cygwin在Windows上运行OpenSSH SSHD服务器

http://www.noah.org/ssh/cygwin-sshd.html

Install the following Cygwin packages (rerun setup if necessary -- you can add packages after you have already installed Cygwin).

Admin --> cygrunsrv
Net --> openssh

Open a new bash shell window and run the SSH configure stuff.

ssh-host-config -y

This step will create necessary configuration files, a priviledge separation user and necessary directories.

When prompted with "CYGWIN=" type for following:

tty ntsec

Now you are ready to start the service.

cygrunsrv -S sshd

Finished

Bugs

Sometimes you get a sshd/cygrunsrv service error after trying to run the service.

cygrunsrv: Error starting a service:
QueryServiceStatus: Win32 error 1062:
The service has not been started.

There can be a couple of causes for this. The following may fix the problem (this is not an option on XP Home).

Solution 1.

You may have an old or corrupt installation of Cygwin. Try reinstalling. The following may also help:

cygrunsrv -R sshd
REBOOT (or use the Task Manager to kill all instances of sshd that may be running in the background)
run "ssh-host-config -y" again.
This seemed to help on a few systems I worked on.

Solution 2.

Open an explorer window and use the "Properties | Security" dialog and explicitly add "Full Control" for the SYSTEM user to the following directories:

C:\Cygwin
C:\Cygwin\var
C:\Cygwin\var\log

Hope that helps!

原文地址:https://www.cnblogs.com/develon/p/9977882.html

时间: 2024-08-25 02:40:20

如何使用Cygwin在Windows上运行OpenSSH SSHD服务器的相关文章

windows上运行npm Error: ENOENT, stat 'C:\Users\

安装nodeJS后,npm 自动安装到机器上. 系统版本,win7.   node -v 查看node版本信息为v0.10.33.  npm -v 查看npm版本信息,1.4.28. 但是,真正使用npm install的时候又报错,错误信息为: 上网查后,解决办法入下: 在报错的路径下建个名为  npm的文件 ,不要带后缀名. 报错路径为: C:\Users\“用户名”\AppData\Roaming\   这个路径下建个npm文件即可正常使用npm 命令了! 注意:  由于AppData 是

电脑出现“损坏的图像”窗口提示dll没有被指定在Windows上运行如何解决

电脑中出现了无法运行应用程序的情况,弹出一个“***.exe - 损坏的图像”的窗口,上面提示“***.dll没有被指定在Windows上运行……”,如果我们遇到这样的问题,应该要如何解决呢? 1.我们可以进行完全注册系统dll文件的操作,在运行中输入CMD,点击确定或按回车键,打开管理员命令提示符窗口; 2.复制粘贴命令:for %1 in (%windir%\system32\*.dll) do regsvr32.exe /s %1到命令提示符中; 3.粘贴后,按回车键执行; 4.会开始注册

如何实现在Windows上运行Linux程序,附示例代码

如何实现在Windows上运行Linux程序,附示例代码 微软在去年发布了Bash On Windows, 这项技术允许在Windows上运行Linux程序, 我相信已经有很多文章解释过Bash On Windows的原理,而今天的这篇文章将会讲解如何自己实现一个简单的原生Linux程序运行器, 这个运行器在用户层实现, 原理和Bash On Windows不完全一样,比较接近Linux上的Wine. 示例程序完整的代码在github上, 地址是 https://github.com/30324

windows上运行celery4.x就会出现问题

windows上运行celery4.x就会出现问题: ValueError: not enough values to unpack (expected 3, got 0) 解决办法: pip install eventlet 启动worker的时候加一个参数,如下: celery -A <mymodule> worker -l info -P eventlet 原文地址:https://www.cnblogs.com/louzi/p/10115384.html

Docker在Linux/Windows上运行NetCore文章系列

原文:Docker在Linux/Windows上运行NetCore文章系列 Windows系列 因为Window很简单,VS提供界面化配置,所以只写了一篇文章 Docker在Windows上运行NetCore系列(一)使用命令控制台运行.NetCore控制台应用 Linux(ubuntu 16.04) Docker在Linux上运行NetCore系列(一)配置运行DotNetCore控制台 Docker在Linux上运行NetCore系列(二)把本地编译好的镜像发布到线上阿里云仓库 Docker

VMware Workstation pro无法在Windows上运行,检查可在Windows上运行的此应用的更新版本

VMware Workstation pro无法在Windows上运行,检查可在Windows上运行的此应用的更新版本如何解决? 如果您无法正常查看本文的图片,请访问我的语雀空间查看备份文档:语雀|VMware Workstation pro无法在Windows上运行,检查可在Windows上运行的此应用的更新版本 Solution1: 卸载Windows更新 卸载图中的两个更新后重启电脑,VMware就能正常使用了~ 必要的话,你还可以参考这篇文章停止Windows自动更新:如何停止Windo

redis 在windows上运行

参考自:https://github.com/ServiceStack/redis-windows 1.用vagrant 运行redis的最后版本 1.1在windows上安装vagrant http://docs.vagrantup.com/v2/getting-started/ 1.2下载vagrant-redis.zip(vagrant的配置文件 https://raw.github.com/ServiceStack/redis-windows/master/downloads/vagra

RemixOS Player 让用户在 Windows 上运行 Android App

Android PC操作系统Remix OS的开发商今天宣布推出RemixOS Player,可以让用户在Windows当运行Android应用程序(入门教程ty300.com).RemixOS Player本质上来说是一款Android模拟器,虽然开发者声称它是一个最快和最优化的模拟器,它基于谷歌自己Android Studio中的模拟器,但是包含一些变化,使体验顺畅了很多. 像其他Android模拟器(app开发ty300.com),RemixOS Player让用户在Windows当中运行

使用Cygwin在Windows上体验Linux的快感

前言 记得大学的时候就以前使用过Cygwin,可惜当时没有发现她的美,我相信如今大多数朋友可能会更加倾向于使用Git或者干脆直接使用虚拟机以及原生Unix. 只是对于刚进入Linux的世界新人来说,使用Cygwin能够让你在Windows以下练习Linux的Bash,以及经常使用工具,而不须要安装Linux,也不用操心Windows被破坏.给每一个人多一种选择也蛮好的,最后再一次感谢163为开源做出的努力. Get that Linux feeling - on Windows 更新历史 201