DGA-MI-SSI / YaCo

YaCo is an Hex-Rays IDA plugin. When enabled, multiple users can work simultaneously on the same binary. Any modification done by any user is synchronized through git version control.
GNU General Public License v3.0
313 stars 36 forks source link

Failed to fetch origin, error: malformed URL #31

Closed 7Hazard closed 5 years ago

7Hazard commented 6 years ago

yaco: WARNING: Failed to fetch origin, error: malformed URL 'ssh://git@gitlab.com:HIDDEN/HIDDEN/HIDDEN.git' Sensetive or unimportant stuff has been replaced with HIDDEN Using the latest build from releases

bamiaux commented 6 years ago

try to log with ssh & check whether ssh-agent or pageant is running once it works, try with yaco

SilverBut commented 6 years ago

On Linux version:

$ cat FILE_local.log                                                  
2018-04-25 16:50:56 yaco: YaCo version v1.8.3-0-ga6315501
2018-04-25 16:50:56 repo: warning Failed to get commit from master, error: no reference found for shorthand 'origin/master'
2018-04-25 16:50:56 repo: warning Master and origin/master does not point to same commit, please update your master
2018-04-25 16:52:04 events: cache: exported in 2 seconds
2018-04-25 16:52:04 repo: warning Failed to fetch origin, error: malformed URL 'ssh://DOMAIN/USER/FILE_2018.6.1_yaco.git'
2018-04-25 16:52:04 repo: warning Failed to rebase master from origin/master, error: no reference found for shorthand 'origin/master'
2018-04-25 16:52:04 repo: Unable to update cache

However:

$ ssh DOMAIN
PTY allocation request failed on channel 0
Welcome to GitLab, USER!
Connection to some.domain.example.com closed.

My .ssh/config:

Host DOMAIN
 IdentityFile ~/.ssh/USER@DOMAIN.key
 Port 13822
 User git
SilverBut commented 6 years ago

Seems YaCo is not reading this file?

bamiaux commented 6 years ago

YaCo is not using ssh directly, you need to use an SSH agent. You can check instructions here https://www.ssh.com/ssh/agent You probably need to do this

ssh-add ~/.ssh/USER@DOMAIN.key
ssh-add -l
MrSapps commented 6 years ago

I have used puttygen and pagent but also get this error. Is command line ssh-add the only way to resolve?

bamiaux commented 6 years ago

ssh-add is the way to go on linux I use pageant on windows, which is equivalent Can you try to connect to your github server using plink.exe instead of ssh and report the output ?

MrSapps commented 6 years ago

I managed to get it working with pageant. It was a little tricky because I had to use puttygen to generate a ppk for pageant but I couldn't get GitHub to accept that format. So I had to use puttygen again to get the public key in a format that GH was happy with.

MrSapps commented 6 years ago

Some extra hints for anyone who has this issue (specific to my repo sorry): https://gist.github.com/paulsapps/fdbcda15d6b268ab8b7d6683dc6c7dd7

Edit: Actually something like this is in the readme now, things move fast around here ;)

bamiaux commented 5 years ago

Closing it as it should work with an ssh agent. YaCo does not support .ssh/config files