- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
OpenSSH for Windows 配置
1. 下载openssh并安装。
安装很简单,就像其它windows下的软件一样,双击即
可。
2. 配置。
第一、打开一个m -do 终端,进入open h/bin 目录。
第二、将计算机上的组导入group 文件中。这里分两种情况,第一种是本地,第二种是
在域中。分别运行-l 和-d 参数。如果想将两种组都导入,可以先运行-l 的参数再运行-d 参数
的命令。
下面是原文:
Use mkgroup to create a group permi ions 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 这是加入域组的命令。
(注意执行位置的路径)
第三、 将计算机的用户与其密码导入pa wd 文件中。与上面的组一样,也是分本地和
域两种情况。如果没有该文件或没有导入用户的信息。作为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 这是加入本地用户的命令。
mkpasswd -d [-u username] ..\etc\passwd 这是加入域用户的命令。
NOTE: To add users from a domain that is not the primary domain of the machine, add
the domain name after the user name.
NOTE: Ommitting the username switch adds ALL users from the machine or domain,
including service accounts and the Guest account.
如果计算机没有域,只要运行两条命令就可以了。(注意我是在openssh/bin 目录下运
行的。)
mkgroup -l ..\etc\group
mkpasswd -l [-u username] ..\etc\passwd
4.启动openssh server。
net start opensshd
很明显,停止opensshd 服务的命令就是:
net stop opensshd
5、使用。
ssh -p 端口 用户名@对方主机IP
sftp -p 端口 用户名@对方主机IP
scp -p 端口 用户名@对方主机IP:文件路径 . 注意:端口默认是22,所以一般不用加-p 参
数。要更改端口可以在etc/sshd_config 中更改。
2、 安装完后生成group 和passwd 文件后就可以进行简的ssh 操作了
i. 生成group 和passwd 文件(注:参数-l 为本机 –d 为域 –u username 为本地/域用户名)
cd d:\svn\o
文档评论(0)