<small id='aya1vh26'></small><noframes id='4kak24f9'>

<tfoot id='a1vo158w'></tfoot>
  • 您的位置:荆州电脑信息网 > win7问题 > 在windows7下安装了cygwin怎么配置ssh啊?这样的错误怎么解决?

    在windows7下安装了cygwin怎么配置ssh啊?这样的错误怎么解决?

    作者:电脑信息网日期:

    返回目录:win7问题


    你参考一下这个信息:
    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 服务, 无启动帐号e69da5e6ba907a686964616f336.
    15. 检查系统用户 sshd 是否已启用, 并属于管理员组.
    16. 一切正常,即可启动ssh服务. 登录的用户名是sshd, 密码是 sshd用户的密码.
    注意: 使用 windows 用户本地认证
    mkpasswd -l > /etc/passwd 使用windows 用户的密码
    mkgroup -l > /etc/group 使用windows 用户组

    配置完成后,你可以使用SecureCRT或者 putty等软件登陆连接ssh

    问题描述:
    Win7下Cygwin中,使用ssh localhost命令,出现Connection closed by 127.0.0.1的问题。
    解决方案:
    1、开始——运行——services.msc
    2、右键CYGWIN sshd——属性——登录选项卡——选择“此账户”——浏览——高级——立即查找——选择你的账户名(必须为管理员权限)——输入密码(必须要有,空密码不接受)——确定。
    3、重启CYGWIN sshd服务即可。
    这样就以你的账户的名义启动了这个服务。而后ssh localhost成功。
    这样做的一个缺点可能是你要给电脑设个密码。
    win7下卸载cygwin:1.停止cygwin的服务,主要是个sshd服务,通过命令net stop sshd可以停止,还可以在zdwindows服务里找到它右键点击停止服务

    2.删除cygwin的服务目录,另外检查下载windows c盘用户目录下包含cygwin的用户目录,如果有也删除掉,删除创建的快捷方式

    3.在计算机管理->本地用户组下删除cygwin创建的用户

    4.打开注册表,删除一些内容
    HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\sshd
    HKEY_CURRENT_USER\Software\Cygwin
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Cygwin

    5.以上步骤完成后重启计算机即可。

    以系统管理员身份启动cygwin
  • <small id='6dipsqsi'></small><noframes id='v6xp9l6x'>

      <tbody id='y0pyjj8k'></tbody>

  • <tfoot id='z86wxpys'></tfoot>

      相关阅读

      关键词不能为空

      标签导航

      win7系统玩QQ飞车游戏窄屏怎么快速解决不然玩起来不爽... windows7如何安装QQ飞车游戏? win7 运行QQ飞车出现错误!怎么解决? qq飞车win7怎么改帧数 求解,为什么我的笔记本装win10要厂家原装系统 旧笔记本电脑可以装win10系统吗? 为啥装不了我的是win10的 我买的华硕笔记本电脑系统是win10的,这win10系统实在... 配置完成后,输入ss... 在windows上配置cygwin时出现这样的错误怎么解决 我在Windows7上安装Cygwin 有没有win10 64位可用的虚拟鼠标驱动 有没有win10可用的鼠标连点器 win10电脑突然显示鼠标驱动程序错误是怎么回事? win10电脑突然显示鼠标驱动程序错误,这是怎么回事 现在我的苹果电脑已经是win7系统了 但我想重新装一次win... MAC por装win7系统时间设置更改不好,关机再开时间还... 苹果电脑怎么直接装win7系统 想在mac系统上装一个win7系统,谁知道怎么装呢? 初到贵地,想问一下GHOST版WIN10可以使用应用商店吗 为什么我的Win10菜单没有应用商店那些玩意儿? 阉割版(ghost)版的win10专业版,怎么恢复应用商店? 雨林木风 win10 应用商店 没有 win7的桌面怎么设置成豆沙绿? 怎么将WIN7的桌面改成豆沙绿? win7怎么把电脑屏幕调成豆沙绿 WIN7个性化设置窗口颜色改成豆沙绿但是文件夹背景没变... Win10自带纸牌游戏怎么玩 Win10自带的纸牌游戏翻三张有大佬赢过吗,是不是经常有残局... win10纸牌游戏星俱乐部Klondike,困难程度2的最后... win10系统中有什么自带游戏 我的电脑所有的只要是带有文字行的东西打开底色都是绿色 ,谁知... WIN7如何设置 才会使得窗口界面、OFFICE文档背景色呈... word默认字体不是宋体,怎么改成宋体 win7系统怎么更改默认字体颜色 Win10如何删除主题 win10 如何安装主题 win10系统电脑我用了一个主题,但是就想用其中的一个图片,... 如何在Windows10中使用第三方主题 Win7系统下IE11无法卸载不能重装该怎么办 ie11卸载不了怎么办 IE11怎么卸载重装 卸载ie11发生错误 没有成功卸载全部更新 卸载ie11浏览器出现无法卸载操作失败怎么办 为什么win10 电脑待机一段时间后会死机? win10更新1903更新卡主我关机不更新了现在程序经常... 关于Win10待机一段时间会死机的问题 更新win10版本1903时遇到问题? windows7怎样添加输入法 如何在Win7中添加多语言输入法 win7输入法怎么设置兼容性 WIN7 64位怎么设置默认输入法 红警2尤里的复仇win10怎么兼容 为什么我的win10系统运行红警2尤里的复仇会出现见问题补充 我的电脑是win10系统,现在玩《星际争霸2虚空之遗》显示不...

      电脑蓝屏,win7,win10相关问题_荆州电脑信息网