日期:2014-05-17  浏览次数:20748 次

OpenSSH for Windows 配置

OpenSSH for Windows 配置

?

1.????? 下载openssh安装。
安装很简单,就像其它windows下的软件一样,双击即可。


2.? 配置。

????
第一、打开一个msdos终端,进入openssh/bin目录。

????
第二、将计算机上的组导入group文件中。这里分两种情况,第一种是本地,第二种是在域中。分别运行-l-d参数。如果想将两种组都导入,可以先运行-l的参数再运行-d参数的命令。
下面是原文:

Use mkgroup to create a group permissions file. For local groups, use the "-l" switch. For domain groups, use the "-d" switch.
???? For both domain and local, it is best to run the command twice (remember to use >>, not >). If you use both, make sure to edit the file to remove any duplicate entires.
?????? mkgroup -l >> ..\etc\group????????
这是加入本地组的命令。

?????? mkgroup -d >> ..\etc\group??????
这是加入域组的命令。

???? (
注意执行位置的路径
)
????
第三、 将计算机的用户与其密码导入passwd文件中。与上面的组一样,也是分本地和域两种情况。如果没有该文件或没有导入用户的信息。作为server的话,将不能被登陆。

下面是原文:

Use mkpasswd to add authorized users into the passwd file. For local users, use the "-l" switch. For domain users, use the "-d" switch.
???? For both domain and local, it is best to run the command twice (remember to use >>, not >). If you use both, make sure to edit the file to remove any duplicate entires.

?????? mkpasswd -l [-u <username>] >> ..\etc\passwd?????