简体   繁体   English

在Windows Server 2008上使用SSH设置GIT时出现问题

[英]Issue setting up GIT with SSH on Windows Server 2008

I´m following the steps outlined in Tim Davis´ blog for setting up GIT with copSSH on Windows ( 我正在按照Tim Davis博客中概述的步骤在Windows上使用copSSH设置GIT( http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/ ) but I´m having problems. http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/ ),但是我遇到了问题。 I´ve gotten up to step 15 under the Installing Putty instructions but rather than getting a "Enter Login" message, I´m getting a "Network Error: Unable to connect to server" error. 我已经按照“安装腻子”说明进行了第15步,但没有得到“输入登录名”消息,而是得到了“网络错误:无法连接到服务器”错误。
I know that it could potentially be a myriad of things but I was wondering if by some miracle, someone could give me some ideas of what else I should check? 我知道这可能是无数的事情,但是我想知道是否有奇迹,有人可以给我一些我应该检查的东西的想法?
I´ve doublechecked the following: 我仔细检查了以下内容:

  • IP address is correct IP地址正确
  • User has been added to copSSH 用户已添加到copSSH
  • Key is stored in the specified user folder 密钥存储在指定的用户文件夹中
  • Rule has been added to Firewall 规则已添加到防火墙

  • (NOTE: We´re using a server on 1and1.com and the firewall rules allow us to specify a local port and a remote port. Have configured to local port 4837 and remote port to Any). (注意:我们在1and1.com上使用服务器,并且防火墙规则允许我们指定本地端口和远程端口。已将本地端口配置为4837,将远程端口配置为Any)。 I tried to doublecheck if the SSH service is running but I don´t know what it´s called. 我试图仔细检查SSH服务是否正在运行,但我不知道它叫什么。 I noted down the username and password from the copSSH setup but I haven´t seen anything remotely similar to SSH in the list of services. 我记下了copSSH设置中的用户名和密码,但是在服务列表中没有看到与SSH类似的远程信息。

Any help would be greatly appreciated!! 任何帮助将不胜感激!! I´ve never had to do something like this before so I´ma little lost. 我以前从来没有做过这样的事情,所以我有点迷茫。
Regards, 问候,
Kat

Troubleshooting 故障排除

Are you specifying port 4837 in the Putty window? 您是否在“腻子”窗口中指定端口4837?

I personally suggest using OpenSSH or SmartGit , not Putty... I've seen too many issues with it. 我个人建议使用OpenSSH或SmartGit ,而不是Putty ...我看到了太多问题。

Also, I suspect your firewall configuration needs to be local port=Any and remote port=4837. 另外,我怀疑您的防火墙配置需要为本地端口=任何和远程端口= 4837。

The 5 minute shortcut 5分钟快捷键

This installer sets up a windows git server using CopSSH . 此安装程序使用CopSSH设置Windows git 服务器 It configures the firewall, the user accounts, and gives you a GUI for all the SSH and keys stuff. 它配置防火墙,用户帐户,并为您提供所有SSH和密钥内容的GUI。 It costs $9, but it saves hours of configuration (it's a 5 minute, 3-step install). 它的价格为9美元,但可节省数小时的配置(这是5分钟的三步安装)。 It has a self-contained Git install, so no conflicts should happen. 它具有独立的Git安装,因此不会发生冲突。

NOTE : I'm the webmaster of windowsgit.com . 注意 :我是windowsgit.com的网站管理员。 I got the project started after taking a good look at Davis' tutorial and thinking.... oh, ----! 在仔细阅读了Davis的教程和思考之后,我开始了该项目。 The CopSSH author and I collaborated to make the automate the process and reduce the number of frustration-related keyboard deaths :) 我和CopSSH的作者合作使流程自动化,并减少了与挫败感相关的键盘死亡人数:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM