Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rugged::Credentials::SshKey - This transport isn't implemented #299

Closed
joelmoss opened this issue Dec 16, 2013 · 5 comments
Closed

Rugged::Credentials::SshKey - This transport isn't implemented #299

joelmoss opened this issue Dec 16, 2013 · 5 comments

Comments

@joelmoss
Copy link

From the latest development branch, the following does not work

require 'rugged'
creds = Rugged::Credentials::SshKey.new(username: 'git', publickey: File.expand_path("~/.ssh/id_rsa.pub"), privatekey: File.expand_path("~/.ssh/id_rsa"))
Rugged::Repository.clone_at 'ssh://github.com/joelmoss/strano.git', 'workspaces/joelmoss/strano', credentials: creds
Rugged::NetworkError: This transport isn't implemented. Sorry

Any ideas why? What am I missing here, as Rugged::Credentials::Plaintext works fine.

@arthurschreiber
Copy link
Member

To have SSH support in Rugged, you need to install libssh2 on your system, and then rebuild Rugged, so that the vendored libgit2 gets recompiled with SSH support.

@joelmoss
Copy link
Author

Thx, but would be a good idea to put that in the readme somewhere.

@mieciu
Copy link

mieciu commented May 12, 2015

Is there any possibility to verify whether current rugged gem installation already has ssh support?

@carlosmn
Copy link
Member

Rugged.features shows a list of compiled-in optional features.

@mieciu
Copy link

mieciu commented May 13, 2015

Thank you @carlosmn , I've opened an issue in my case, here:
#484
Perhaps you could help me with determining the cause of error I'm facing there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants