在安装cygwin的时候,执行ssh-host-config后显示如下:
木有后面要求输入的内容:
*** 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
*** Query: Enter the value of CYGWIN for the daemon: [] ntsec tty
*** 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 XP 64bit, Windows 2003 Server,
*** Info: or later. On these systems, it's not possible to use the LocalSystem
*** Info: account for services that can change the user id without an
*** Info: explicit password (such as passwordless logins [e.g. public key
*** Info: authentication] via sshd).
*** Info: If you want to enable that functionality, it's required to create
*** Info: a new account with special privileges (unless a similar account
*** Info: already exists). This account is then used to run these special
*** Info: servers.
以上内容均未出现,在执行net start sshd的时候出现以下问题:
发生系统错误 1069。
由于登录失败而无法启动服务。
-- 这是由于用户密码输入错误导致的,以后更改用户后sshd也可能发生这个问题,在 services.msc 里的登录标签里更改用户设置即可!
输入账号和密码,启动过程中报如下错误:
在cygwin上面启动老是报错,说无法cygwin无法启动,也木有报具体什么原因,那么只有改成administrator登录,再次尝试就ok了~
假如说启动换成administrator后还是无法启动,那么查看一下sshd服务,看路径对不读,启动报错:
执行net start sshd 后会报:
发生系统错误3
这个时候真的木有招了,网上也找不到答案,但是知道思路了,就是之前安装的已经删除,注册表中保存的还是之前的信息,所以就想着删除服务:
Administrator@localhost~
$ sc delete sshd
[SC] DeleteService 成功
Administrator@localhost~
$ssh-host-config
这个时候就会正常显示,总共要输入的内容都在下面:
######################################################
chmod +r /etc/passwd
chmod +r /etc/group
rm -rf /var/
ssh-host-config
yes
yes
yes
ntsec tty
yes
cygwin
cygwin
yes
$password
$password
net start sshd
mkpasswd -l >/etc/passwd
mkgroup -l > /etc/group
ssh localhost
yes
$hostpassword
######################################################
更多详细信息请查看
java教程网 http://www.itchm.com/forum-59-1.html
分享到:
相关推荐
Windows下的SSH安装之Cygwin
龙芯1B EJTAG在windows环境下的下载工具,亲自测验可用,附有详细操作ejtag-debug-cygwin-v3.8.2步骤,驱动需要另行安装哦。
NCL-6.6.2-Cygwin64-Jul-2020.exe
ejtag-debug-cygwin-v3.8.2,龙芯 1B 烧录 ejtag 工具,32位linux下使用
The Cygwin team has updated the cygwin package and deprecated support for various Windows versions over time. The below table shows the Windows version with the corresponding latest version of OpenSSH...
如何将Cygwin安装完全 -- 如何将Cygwin安装完全 -- 如何将Cygwin安装完全
rrdtool-1.2.4-cygwin-1.5.15
Cygwin下的mips-linux-gcc交叉编译工具链,版本:4.8.4
NCL cygwin 安装包,目前为最新版6.5,可在win7, win10下运行
windows下生成arm-linux-gcc的工具.省了自己配置和编译的很多麻烦.生成的arm-linux-gcc自己进行过验证,可以使用.
如果你想在Windows上使用Linux上的环境和命令,比如make,那么使用cygwin-setup-x86_64会非常方便,缺什么就装什么!
现在世界气象界广泛使用的绘图软件,目前最新版本为2.0
rrdtool-1.2.15-cygwin-1.5.20 适用于Cygwin Windows
Atom-atom-sync-cygwin.zip,Atom package to sync files bidirectionally between remote host and local over ssh rsync optimized for Windows with cygwin注意!,atom是一个用web技术构建的开源文本编辑器。
Cygwin下的arm交叉编译工具链,版本4.8.4。此工具链生成的可执行文件为ARM Big Endian(大端)格式的ELF文件
sudo-for-cygwin-源码.rar
测试版本:Android-NDK-r5 安装说明:由于上传文件大小有现在,将其分为三部分上传:cygwin2.738压缩包1.rar,cygwin2.738压缩包2.rar,cygwin2.738压缩包3.rar。将这三个压缩包分别解压在同一个文件夹只下,得到...
cdo 1.9.7.1 windows64位安装文件
老版本,比较适合开发用,最新版本有的软件不能兼容
Cygwin下arm-Linux交叉编译器,版本:4.9.2,C库版本:glibc-2.19