Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Adding SSH ciphers when connecting #393

Closed
Urethramancer opened this issue May 16, 2017 · 4 comments
Closed

Adding SSH ciphers when connecting #393

Urethramancer opened this issue May 16, 2017 · 4 comments
Assignees

Comments

@Urethramancer
Copy link

Is there a built-in way to expand the range of ciphers used when connecting to a repository? I'm trying to clone Visual Studio Team Services repos via a tool I'm making (internal tool for private company repos(, and it turns out the SSH support from MS looks a bit fake.

When running PlainClone() after setting up auth via SSH key I get this error:
ssh: handshake failed: ssh: no common algorithm for client to server cipher; client offered: [aes128-ctr aes192-ctr aes256-ctr aes128-gcm@openssh.com arcfour256 arcfour128], server offered: [aes256-cbc aes192-cbc aes128-cbc]

It looks to me like the plumbing section reimplements a bit of the ssh package, and to expand it I have to re-reimplement part of it, but I was hoping there was a better way :)

@smola
Copy link
Collaborator

smola commented May 22, 2017

@Urethramancer Thanks for reporting this! We'll look into it.

Note that even if this bug is fixed, it is unlikely that go-git currently works with VSTS, since they do not support the basic git protocol (no multi-ack) and we currently have support only for it. See this issue for more info: #335

@Urethramancer
Copy link
Author

Thanks, I missed that issue in my search. Looks like I'll do a hacky workaround just for VSTS then in my little project :)

@smola
Copy link
Collaborator

smola commented Jun 13, 2017

I've created a PR to be able to pass options to the SSH transport: #423
This should make possible to enable aes128-cbc in ClientConfig.Ciphers. See: https://godoc.org/golang.org/x/crypto/ssh#Config

@smola smola self-assigned this Jun 13, 2017
@mcuadros
Copy link
Contributor

Fixed by #423

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

3 participants