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

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!

OpenSSH server 安装后是一个叫 CYGWIN sshd 的服务, 如果启动失败, 需要更改为本地登录.

最新文章

  1. MongoDB性能优化
  2. Error when loading the SDK:
  3. Linux驱动设计——字符设备驱动(一)
  4. chinapay
  5. PhoneGap API Documentation API Reference
  6. align=absMiddle属性设置
  7. careercup-数组和字符串1.7
  8. 微信公众平台--网页授权获取用户基本信息(snsapi_base方式)
  9. 《A First Course in Probability》-chaper8-极限定理-切比雪夫不等式
  10. SQL Server 2008空间数据应用系列六:基于SQLCRL的空间数据可编程性
  11. Best Component for Bitmap Image
  12. 【POJ1743】Musical Theme(后缀数组)
  13. linux设置打开文件句柄数
  14. [Laravel] Laravel的基本数据库操作部分
  15. IDC Digital Transition Annual Festival(2018.10.19)
  16. SKINNY加密算法详解(无代码,仅加密)
  17. 一种安装openslide的简易方法
  18. i2c总线驱动,总线设备(适配器),从设备,从设备驱动的注册以及匹配
  19. ethereumjs/ethereumjs-tx
  20. jenkins权限配置不对导致jenkins无法登陆

热门文章

  1. FLAG区
  2. 【转】C++ const 关键字总结
  3. 「SCOI2016」围棋 解题报告
  4. bootstrap boosting bagging辨析
  5. angular2的lazyload初体验
  6. An Introduction to OAuth 2
  7. bouncing-balls-evil-circle
  8. Python基础语法总结
  9. POJ 3268 Silver Cow Party (Dijkstra)
  10. Tomcat第一个站点介绍