- 浏览: 111022 次
- 性别:
- 来自: 北京
文章分类
最新评论
1. 从[url]www.cywin.com[/url] 下载 setup.exe 安装引导程序
2. 双击 setup.exe 开始安装
3. 选择安装源 Install for Internet ( 如果有上次从 Internet 下载的软件包,可以选择 Install for Local Directory 选择存放的目录即可)
4. 定义安装目录 C:/cygwin (1) Install for : All Users (2) Default Text File Type: Unix/binary
5. 定义下载软件所存放目录,(下次可以使用下载包从本地硬盘进行安装) .G:/Download/cywin
6. 选择连接 Internet 的类型,根据自己的实际情况选择
7. 选择一个镜像下载站点
8. 选择安装软件包
(1) Admini 中选择:cygrunsrv
(2) DOC 中选择:cygwin-doc
(3) Net 中选择:openssh
9. cywin 自动下载选择的软件包,并进行安装。
10. 在我的电脑->属性->高级->环境变量中配置加入变量CYGWIN=ntsec,
在path环境变量中加入cygwin/bin路径, 例如: ;c:/cygwin/bin
11. 双击Windows上安装好的 Cywin快捷图标,启动 Cywin
Copying skeleton files.
These files are for the user to personalise
their cygwin experience.
These files are for the user to personalise
their cygwin experience.
These will never be overwritten.
`./.bashrc' -> `/home/Administrator//.bashrc'
`./.bash_profile' -> `/home/Administrator//.bash_profile'
`./.inputrc' -> `/home/Administrator//.inputrc'
`./.bash_profile' -> `/home/Administrator//.bash_profile'
`./.inputrc' -> `/home/Administrator//.inputrc'
12. 给文件授权,以完成sshd 服务的安装
chmod +r /etc/group
chmod +r /etc/passwd
chmod +rwx /var
chmod +r /etc/passwd
chmod +rwx /var
13. 安装 sshd 服务
$ ssh-host-config
详细的安装步骤,以及输入的参数,如下所例:
Copying skeleton files.
These files are for the user to personalise
their cygwin experience.
These will never be overwritten.
`./.bashrc' -> `/home/Administrator//.bashrc'
`./.bash_profile' -> `/home/Administrator//.bash_profile'
`./.inputrc' -> `/home/Administrator//.inputrc'
Administrator@backup ~
$chmod +r /etc/group#对文件权限
Administrator@backup ~
$chmod +r /etc/passwd#对文件权限
Administrator@backup ~
$chmod +rwx /var/#对文件权限
Administrator@backup ~
$ssh-host-config#引导SSH服务配置
*** Info: Generating /etc/ssh_host_key
*** Info: Generating /etc/ssh_host_rsa_key
*** Info: Generating /etc/ssh_host_dsa_key
*** Info: Creating default /etc/ssh_config file
*** Info: Creating default /etc/sshd_config file
*** Info: Privilege separation is set to yes by default since OpenSSH 3.3.
*** Info: However, this requires a non-privileged account called 'sshd'.
*** Info: For more info on privilege separation read /usr/share/doc/openssh/READ
ME.privsep.
*** Query: Should privilege separation be used? (yes/no)yes#输入yes
*** Info: Updating /etc/sshd_config file
*** Warning: The following functions require administrator privileges!
*** Query: Do you want to install sshd as a service?
*** Query: (Say "no" if it is already installed as a service) (yes/no)yes#输入yes
*** Info: Note that the CYGWIN variable must contain at least "ntsec"
*** Info: for sshd to be able to change user context without password.
*** Query: Enter the value of CYGWIN for the daemon: [ntsec]ntsec#输入ntsec
*** Info: On Windows Server 2003, Windows Vista, and above, the
*** Info: SYSTEM account cannot setuid to other users -- a capability
*** Info: sshd requires.You need to have or to create a privileged
*** Info: account.This script will help you do so.
*** Info: You appear to be running Windows 2003 Server or later.On 2003 and
*** Info: later systems, it's not possible to use the LocalSystem account
*** Info: for services that can change the user id without an explicit password
*** Info: (such as passwordless logins [e.g. public key authentication] via sshd
).
*** Info: If you want to enable that functionality, it's required to create a ne
w
*** Info: account with special privileges (unless a similar account already exis
ts).
*** Info: This account is then used to run these special servers.
*** Info: Note that creating a new user requires that the current account have
*** Info: Administrator privileges itself.
*** Info: No privileged account could be found.
*** Info: This script plans to use 'cyg_server'.
*** Info: 'cyg_server' will only be used by registered services.
*** Query: Do you want to use a different name? (yes/no)no#输入no,不指定启动用户
*** Query: Create new privileged user account 'cyg_server'? (yes/no)no#输入no,不指定启动用户
*** ERROR: There was a serious problem creating a privileged user.
*** Query: Do you want to proceed anyway? (yes/no)yes#输入yes
*** Warning: Expected privileged user 'cyg_server' does not exist.
*** Warning: Defaulting to 'SYSTEM'
*** Info: The sshd service has been installed under the LocalSystem
*** Info: account (also known as SYSTEM). To start the service now, call
*** Info: `net start sshd' or `cygrunsrv -S sshd'.Otherwise, it
*** Info: will start automatically after the next reboot.
*** Info: Host configuration finished. Have fun!
Administrator@backup ~
$cygrunsrv.exe -S sshd#启动SSH服务
14. 安装完成后,检查一下系统服务中是否有 CYGWIN sshd 服务, 无启动帐号.
15. 检查系统用户 sshd 是否已启用, 并属于管理员组.
16. 一切正常,即可启动ssh服务. 登录的用户名是sshd, 密码是 sshd用户的密码.
注意: 使用 windows 用户本地认证
mkpasswd -l > /etc/passwd 使用windows 用户的密码
mkgroup -l > /etc/group 使用windows 用户组
本文出自 “铁钉” 博客,请务必保留此出处http://nails.blog.51cto.com/640492/144025
发表评论
-
LVS简介
2011-03-21 17:58 708LVS可称为Linux虚拟服 ... -
ubuntu10 iso方式安装
2011-03-28 11:31 786一、下载Ubuntu硬盘安装光盘ISO镜像包 下载地址 ... -
ubuntu分区
2011-03-28 14:03 758/boot 分区,256M,文件系 ... -
Ubuntu 小企鹅输入法fcitx安装及设置
2011-03-28 14:08 1038ubuntu用了有一段时间 ... -
linux常用命令
2011-03-28 14:25 7361.关于文件/目录 ... -
ubuntu 安装 opera
2011-03-28 14:27 8231.sudo gedit /etc/apt/sources.l ... -
ubuntu下设置tomcat成为启动服务
2011-03-29 14:18 7851.将tomcat6下的catalina.sh拷贝到/etc/ ... -
linux启动项
2011-03-29 14:37 656、相关基础知识点 1)re ... -
ubuntu10启动window
2011-03-31 11:38 766命令行进入/boot/grub目录,gedit打开grub.c ... -
LINUX目录详解
2011-03-31 13:17 581/ 根目录 │ ├boot/ Li ... -
ubuntu启动图形界面
2011-04-10 13:45 1154/etc/X11/default-display-man ... -
linux出现 DISPLAY 尚未设置 解决方法
2011-04-11 09:05 2316现在root用户目录下执行#xhost +然后#su - or ... -
Linux编辑器vi使用方法详细介绍
2011-05-12 13:18 749vi编辑器是所有Unix及 ... -
ubuntu10.04下低画质进不了图形化解决
2011-06-14 16:46 801Xorg -configure重新配置xserver vi ... -
KeepAlive vs. heart-beat比较
2011-06-17 15:03 780很多人都知道TCP并不 ... -
Rsync简介
2011-07-15 13:10 708目录: 问题 替代品 R ... -
linux关机命令
2011-07-20 21:11 713数据同步写入磁盘: sync 在 Linux 系统中,为了加 ... -
suid,sgid,sticky bit简介
2011-07-21 11:20 769三种特殊权限简介SUID当一个设置了SUID 位的可执行文件被 ...
相关推荐
Windows下的SSH安装之Cygwin
本篇内容详细介绍了cygwin的安装过程,资源配置及简单命令的使用等信息。cygwin是一个在windows平台上运行的unix模拟环境,它对于学习unix/linux操作环境,或者从unix到windows的应用程序移植,或者进行某些特殊的...
Cygwin ssh 故障总结 Cygwin ssh 故障总结
Cygwin安装和openssh配置,Cygwin基本安装和ssh配置
Cygwin+NDK配置最新最全,Cygwin配置,NDK配置
cygwin中单独摘出来的SSH模块,适应于64位windows操作系统
cygwin的ssh安装包,官方下载的..包括了必须的安装包,主要是为了给hadoop用的
cygwin的ssh安装包,官方下载的..包括了必须的安装包,主要是为了给hadoop用的
cygwin的ssh安装包,官方下载的..包括了必须的安装包,主要是为了给hadoop用的
Cygwin_初始配置.pdf
Cygwin是一个用于在Windows上模拟Linux环境的软件。它可以作为那些虚拟机软件的一个部分替代品,相对于在虚拟机你使用Linux是比较好的选择。 文档前部分是关于命令的介绍(shell),后部分为安装、配置等教程。
win7上搭建nfs服务器一共有三种方法: 1、通过软件hanewin_nfs_server来搭建; 2、通过cygwin+nfs-server的方式搭建; 3、利用win7微软提供的nfs server服务来搭建;
安装Cygwin,安装上Tcl和Expect两个工具。 百度搜索:cygwin,在搜索结果中点击:Cygwin Installation 此刻,进入cygwin软件官网,根据自己操作系统,选择32位或64的setup 双击打开下载完成的cygwin,进入安装程序...
cygwin的ssh安装包,官方下载的..包括了必须的安装包,主要是为了给hadoop用的
one udp server running on unix with cygwin.d
可以在cygwin环境下,启动DHCP服务,可以单独使用。 配合TFTP协议,可以网络PXE启动。
cygwin的安装和简单配置,可供初学者参考。。
对于omniORB在windows环境下的安装配置,其中Cygwin编译器用来对omniORB的源码进行编译;该文档对Cygwin在windows下的安装配置进行介绍。
cygwin 配置 tinyos 工具包