免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1461 | 回复: 0

CYGWIN OPENSSH安装及配置 [复制链接]

论坛徽章:
0
发表于 2008-09-24 00:32 |显示全部楼层

v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}

  Normal
  0
  
  
  
  7.8 磅
  0
  2
  
  false
  false
  false
  
  EN-US
  ZH-CN
  X-NONE
  
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
  
  MicrosoftInternetExplorer4
  
   
   
   
   
   
   
   
   
   
   
   
  

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

/* Style Definitions */
table.MsoNormalTable
        {mso-style-name:普通表格;
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-priority:99;
        mso-style-qformat:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif";}
CYGWIN OPENSSH安装及配置
CYGWIN安装
在安装目录cygwin_setup下有两个文件release和setup.exe,如下图:


  
  
  
  
  
  
  
  
  
  
  
  




file:///C:/DOCUME%7E1/rogee/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image002.jpg
其中release文件夹内包含安装文件,setup.exe为安装执行文件。以下为安装过程:
1.      
双击setup.exe进行安装

file:///C:/DOCUME%7E1/rogee/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image004.jpg

2.点击下一步,选择从当地目录安装:

file:///C:/DOCUME%7E1/rogee/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image006.jpg



3.选择安装目录以及安装权限

file:///C:/DOCUME%7E1/rogee/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image008.jpg
4.选择安装文件所在目录

file:///C:/DOCUME%7E1/rogee/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image010.jpg
5.由于原setup文件存在setup.ini文件,此处将setup.ini文件已经移除,所以直接点击下一步,不用进行选择。

file:///C:/DOCUME%7E1/rogee/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image012.jpg







6.软件安装过程

file:///C:/DOCUME%7E1/rogee/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image014.jpg
7.安装完成,根据喜好,选择是否创建桌面图标以及程序组,点击完成。

file:///C:/DOCUME%7E1/rogee/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image016.jpg




















OPENSSH配置
1.      
点击桌面图标

file:///C:/DOCUME%7E1/rogee/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image018.jpg
,进入CYGWIN终端

file:///C:/DOCUME%7E1/rogee/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image020.jpg
2.      
执行ssh-keygen.exe
–t dsa生成密钥,在生成密钥的过程中,系统会询问生成的密钥存放地址,请键入密码等问题,此处直接回车,这样我们就可以实现无密码登录

file:///C:/DOCUME%7E1/rogee/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image022.jpg
3.      
对密钥:分别执行一下命令
a)        
Cp id_dsa.pub   host.key.pub
b)        
Cat id_dsa.pub>>authorized_keys2
c)        
Cat
host.key.pub>>authorized_keys2
d)        
Chmod 600 *

file:///C:/DOCUME%7E1/rogee/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image024.jpg
4.      
运行/usr/bin/ssh-host-config,其中会让用户选择一个权限问题,此处选择no
5.      
启动ssh,执行命令:/usr/sbin/sshd
6.      
实现无密码登录,在首次登录时会询问用户是否登录,选择yes

file:///C:/DOCUME%7E1/rogee/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image026.jpg
7.      
完成ssh无密码登录



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/21105/showart_1219792.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP