Windows2003 SSH服务器搭建及自启动

时间:2022-09-25 15:41:11

1.Tortoisehg的文档和设置选项是接触过的开源社区中最差的,集中表现在自带的Web server没有鉴权。也就是说,大家谁都可以访问你的repo,官方文档非常可爱的表示:

6.4.1. A few things to keep in mind

Because it provides unauthenticated read access to all clients, you should only use hg serve in an environment where you

either don't care, or have complete control over, who can access your network and pull data from your repository。

呵呵呵呵,所以我们需要一个SSH来保障鉴权。


2.在Win2003搭建一个SSH'服务器。

a、下载FreeSSHD

b、安装,选择不安装系统服务。因为系统服务模式不能用。

c、计划任务开启,选择 “在登陆时”启动,注意不要选择 “当系统启动时”启动。直接把快捷方式拖到开始,启动里也不行,因为服务器启动默认是console登陆,SSH客户端会提示“Could not find window of executed program.”。

如图:Windows2003 SSH服务器搭建及自启动Windows2003 SSH服务器搭建及自启动Windows2003 SSH服务器搭建及自启动

3.