Cygwin-安装和配置ssh服务
Cygwin介绍:
Cygwin是一个在windows平台上执行的类UNIX模拟环境。它对于学习UNIX/Linux操作环境,或者从UNIX到Windows的应用程序移植,或者进行某些特殊的开发工作,尤其是使用GNU工具集在Windows上进行嵌入式系统开发,很实用。
由于要学习hadoop分布式文件系统,想在window下模拟linux环境进行部署。
所以想到用cygwin工具。
先将几个我在安装过程中遇到的问题:
1.安装时最好明白自己要安装那些服务。依据自己的实际须要而定,我一次安装就由于漏选了openssh,后来重装了。
2.重装能够不用先卸载。直接点击setup.exe,进行安装,
3.那个选择下载网站就选默认的就好了http://mirrons.163.com。
4.安装ssh服务时配置无password是总是出错
错误例如以下:删掉.ssh目录,用password登陆也是不成功。试了好几次,也重装了cygwin64位还是无效,最后安装cygwin32位的才干够。
Administrator@L ~
$ cd ~/.sshAdministrator@L~/.ssh
$ ssh localhost
Administrator@localhost's password:2 [main] sshd 3804 D:\SofeWare\cygwin\usr\sbin\sshd.exe: *** fatal error - NtCreateEvent(lock): 0xC0000058
Connection to localhost closed.
注意配置 ssh的时候,yes/no的选择要小心点,不小心就会出错。
Administrator@L ~
$ ssh-host-config*** Info: Generating missing SSH host keys
ssh-keygen: generating new host keys: RSA1 RSA DSA ECDSA ED25519
*** Info: Creating default /etc/ssh_config file
*** Info: Creating default /etc/sshd_config file*** Info: StrictModes is set to 'yes' by default.
*** Info: This is the recommended setting, but it requires that the POSIX
*** Info: permissions of the user's home directory, the user's .ssh
*** Info: directory, and the user's ssh key files are tight so that
*** Info: only the user has write permissions.
*** Info: On the other hand, StrictModes don't work well with default
*** Info: Windows permissions of a home directory mounted with the
*** Info: 'noacl' option, and they don't work at all if the home
*** Info: directory is on a FAT or FAT32 partition.
*** Query: Should StrictModes be used? (yes/no) no*** Info: Privilege separation is set to 'sandbox' by default since
*** Info: OpenSSH 6.1. This is unsupported by Cygwin and has to be set
*** Info: to 'yes' or 'no'.
*** Info: However, using privilege separation requires a non-privileged account
*** Info: called 'sshd'.
*** Info: For more info on privilege separation read /usr/share/doc/openssh/README.privsep.
*** Query: Should privilege separation be used? (yes/no) no
*** Info: Updating /etc/sshd_config file*** Query: Do you want to install sshd as a service?
*** Query: (Say "no" if it is already installed as a service) (yes/no) yes
*** Query: Enter the value of CYGWIN for the daemon: [] 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: It's not possible to use the LocalSystem account for services
*** Info: that can change the user id without an explicit password
*** Info: (such as passwordless logins [e.g. public key authentication]
*** Info: via sshd) when having to create the user token from scratch.
*** Info: For more information on this requirement, see
*** Info: https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd1*** Info: If you want to enable that functionality, it's required to create
*** Info: a new account with special privileges (unless such an account
*** Info: already exists). This account is then used to run these special
*** Info: servers.*** Info: Note that creating a new user requires that the current account
*** Info: have 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
*** Query: Create new privileged user account 'LYX\cyg_server' (Cygwin name: 'cyg_server')? (yes/no) no
*** ERROR: There was a serious problem creating a privileged user.
*** Query: Do you want to proceed anyway? (yes/no) noAdministrator@L ~
$ ssh-host-config*** Info: Generating missing SSH host keys
*** Query: Overwrite existing /etc/ssh_config file? (yes/no) yes
*** Info: Creating default /etc/ssh_config file
*** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes
*** Info: Creating default /etc/sshd_config file*** Info: StrictModes is set to 'yes' by default.
*** Info: This is the recommended setting, but it requires that the POSIX
*** Info: permissions of the user's home directory, the user's .ssh
*** Info: directory, and the user's ssh key files are tight so that
*** Info: only the user has write permissions.
*** Info: On the other hand, StrictModes don't work well with default
*** Info: Windows permissions of a home directory mounted with the
*** Info: 'noacl' option, and they don't work at all if the home
*** Info: directory is on a FAT or FAT32 partition.
*** Query: Should StrictModes be used? (yes/no) yes*** Info: Privilege separation is set to 'sandbox' by default since
*** Info: OpenSSH 6.1. This is unsupported by Cygwin and has to be set
*** Info: to 'yes' or 'no'.
*** Info: However, using privilege separation requires a non-privileged account
*** Info: called 'sshd'.
*** Info: For more info on privilege separation read /usr/share/doc/openssh/README.privsep.
*** Query: Should privilege separation be used? (yes/no) no
*** Info: Updating /etc/sshd_config file*** Query: Do you want to install sshd as a service?
*** Query: (Say "no" if it is already installed as a service) (yes/no) yes
*** Query: Enter the value of CYGWIN for the daemon: [] netsec
*** 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: It's not possible to use the LocalSystem account for services
*** Info: that can change the user id without an explicit password
*** Info: (such as passwordless logins [e.g. public key authentication]
*** Info: via sshd) when having to create the user token from scratch.
*** Info: For more information on this requirement, see
*** Info: https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd1*** Info: If you want to enable that functionality, it's required to create
*** Info: a new account with special privileges (unless such an account
*** Info: already exists). This account is then used to run these special
*** Info: servers.*** Info: Note that creating a new user requires that the current account
*** Info: have 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) yes *** Query: Enter the new user name: l *** Query: Reenter: l *** Query: Create new privileged user account 'LYX\lyx' (Cygwin name: 'l')?
(yes/no) yes *** Info: Please enter a password for new user lyx. Please be sure *** Info: that this password matches the password rules given on your system. *** Info: Entering no password will exit the configuration. *** Query: Please enter the password: *** Query: Reenter: *** Warning: Creating the user 'l' failed! Reason: ▒û▒▒▒▒▒▒▒▒▒▒▒▒ƿ▒▒Բ▒ͬ▒▒ ▒▒▒▒▒ NET HELPMSG 2253 ▒Ի▒ø▒▒▒İ▒▒▒▒▒ *** ERROR: There was a serious problem creating a privileged user. *** Query: Do you want to proceed anyway? (yes/no) yes *** Warning: Expected privileged user 'lyx' 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. *** Warning: Host configuration exited with 1 errors or warnings! *** Warning: Make sure that all problems reported are fixed, *** Warning: then re-run ssh-host-config. Administrator@LYX ~ $ ssh localhost The authenticity of host 'localhost (::1)' can't be established. ECDSA key fingerprint is SHA256:5/i9vvXBBfiqhzLrekd9uqPPhKz7NC+9zNwcWLn+qhk. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts. Administrator@localhost's password: Administrator@LYX ~ $ who Administrator pty1 2015-07-24 09:39 (::1)
安装教材:
网上安装教材非常多。我就不赘述了。
在windows系统中通过cygwin安装hadoop:http://my.oschina.net/u/570654/blog/112757
转载于:https://www.cnblogs.com/clnchanpin/p/6794478.html
Cygwin-安装和配置ssh服务相关推荐
- Debian安装和配置ssh服务
首先安装ssh服务器 apt install openssh-server 实现免密登录通过2222端口 服务器端: nano /etc/ssh/sshd_config 进入ssh的配置文件 退出就重 ...
- Kali Linux常用服务配置教程安装及配置DHCP服务
Kali Linux常用服务配置教程安装及配置DHCP服务 在Kali Linux中,默认没有安装DHCP服务.下面将介绍安装并配置DHCP服务的方法. 1.安装DHCP服务 在Kali Linux中 ...
- 在RedHat Linux系统中安装和配置snmp服务
在RedHat Linux系统中安装和配置snmp服务 检查系统是否安装snmp服务 # rpm -qa|grep snmp net-snmp-5.3.2.2-17.el5 net-snmp-perl ...
- OpenVAS破绽扫描根底教程之OpenVAS概述及安装及配置OpenVAS服务
OpenVAS根底学问 OpenVAS(Open Vulnerability Assessment System)是开放式破绽评价系统,其中心局部是一个服务器.该服务器包括一套网络破绽测试程序,能够检 ...
- 如何在 Windows 10 上安装和配置 SNMP 服务并通过组策略配置 SNMP 设置
简单网络管理协议或 SNMP用于企业网络上的监控.事件通知和网络设备管理.该协议由一组网络管理标准组成,包括应用层协议.数据库模式和一组数据对象.SNMP 可以从任何网络设备接收各种类型的信息(正常运 ...
- 最新华为交换机配置ssh服务端配置案例
最新华为交换机配置ssh服务端配置案例 # aaa local-user dcrmyy password irreversible-cipher Huawei@123local-user dcrmyy ...
- 学习安装与配置DNS服务
安装与配置DNS服务 首先,基础环境 1.改主机名 我的主服务器是192.168.200.80 从服务器是 192.168.200.70 main节点 [root@localhost ~]# host ...
- linux dhcp 服务失败,Centos7安装及配置DHCP服务,安装程序配置服务失败
Centos7安装及配置DHCP服务,安装程序配置服务失败 DHCP服务概述: 名称:DHCP - Dynamic Host Configuration Protocol 动态主机配置协议. 功能 ...
- Ubunt安装和配置tomcat8服务
CSDN GitHub Ubunt安装和配置tomcat8服务 AderXCoding/system/tools/tomcat 本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 ...
- win10安装配置ssh服务
文章目录 1. 在线安装 1.1 使用Windows 设置安装 1.2 powerShell 安装 2. 离线安装 2.1 下载离线安装 2.2 解压后到解压目录下 进入cmd 执行 3.3 设置开启 ...
最新文章
- Netty+SpringBoot+FastDFS+Html5实现聊天App
- SharePoint Designer 2013 Workflow
- vue-property-decorator vue typescript写法
- 20201028 《计算感知》第4节课 笔记
- python打包exe报错_python 程序打包为 windows 可执行程序 exe
- Docker教程-文件传输
- KAF-1300图像传感器入榜IEEE芯片名人堂(Chip Hall of Fame )
- sap-ui-core.js reference in Webclient ui
- mysql多数据源切换_CI 多数据库操作 切换数据库
- 手机检测归属地 java_手机号归属地离线查询- Java
- iOS 音频视频图像合成那点事
- MPC(模型预测控制)之二(路径规划)
- PL/SQL 实现行列转换
- jdk的java和javac命令
- 关于OCR,做个记录。
- 【软件周刊第 24 期】Ubuntu 17.04 正式发布,不再支持 32 位 PowerPC(PPC)架构
- Oracle 9i所有版本的最新下载地址(已验证!)
- 【操作系统】Ubuntu 16 编译链接 .cpp 和 .asm 文件
- Ubuntu添加开机自动运行程序
- 一、C语言[typedef、结构体、共用体、枚举体]
热门文章
- Python的Numpy基础语法-01
- linux切换英文界面,linux英文界面下使用中文输入法
- 专题三:MATLAB程序流程控制
- 刚接触新工作的程序员:直接运行include
- 使用jdk提示Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper
- VirtualBox虚拟机如何选中“启用嵌套 VT-x/AMD-V”
- SHELL下去掉变量中的回车换行
- 解决办法:undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
- C中无警告输出size_t的值
- 干电池很不经用,比充电电池差多了