Using cygwin ssh.exe in TortoiseHg possible?

牧云@^-^@ 提交于 2019-12-11 12:52:06

问题


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

ssh -T hg@bitbucket.org

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

Then I post

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

into mercurial.ini in TortoiseHg

And I post

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

Into the hgrc file.

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?

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


回答1:


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

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



来源:https://stackoverflow.com/questions/13210329/using-cygwin-ssh-exe-in-tortoisehg-possible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!