在TortoiseHg中使用cygwin ssh.exe可能吗? [英] Using cygwin ssh.exe in TortoiseHg possible?

查看:267
本文介绍了在TortoiseHg中使用cygwin ssh.exe可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用cygwins ssh创建了公钥和私钥,并将公钥粘贴到bitbucket帐户中。

I created public and private key with cygwins ssh and pasted the public key into bitbucket account.

ssh -T hg@bitbucket.org

说ssh连接工作正常! (所以它应该工作!!!)

says the ssh connection works fine! (so it should work!!!)

然后我发布

[ui]
ssh = C:\cygwin\bin\ssh.exe

into torreiseHg中的mercurial.ini

into mercurial.ini in TortoiseHg

我发布

[paths]
default = ssh://hg@bitbucket.org/myusername/personal

进入hgrc文件。

但是当我想推TortoiseHg对我说:

But then when I want to push TortoiseHg says to me:

remote: Permission denied (publickey).
no suitable response from remote hg

似乎在这里缺少一些东西,

Seems to me something is missing here but what exactly?

编辑:我不想使用TortoisePlink,因为它是超级超级慢!

I don't want to used TortoisePlink because it is SUPER SUPER SUPER SLOW! And https just cancels the connection after uploading several megabytes.

推荐答案

您可能需要指定用户名和/或端口号。
我的mercurial.ini工作正常,它看起来像这样:

You probably need to specify username and/or port number. My mercurial.ini work fine and it looks like this:

[ui]
ssh="C:\cygwin64\bin\ssh.exe" -p 22 -l john

其中john是远程机器上的用户名,22是ssh端口号。

where john is the username on the remote machine and 22 the ssh port number.

这篇关于在TortoiseHg中使用cygwin ssh.exe可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆