Skip to content

Using private Julia package SSH fails #80

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

Closed
markNZed opened this issue Dec 6, 2021 · 5 comments
Closed

Using private Julia package SSH fails #80

markNZed opened this issue Dec 6, 2021 · 5 comments

Comments

@markNZed
Copy link

markNZed commented Dec 6, 2021

There seems to be a bunch of issues with Julia and SSH with private packages. I'm not sure if the issues I'm seeing are specific to PythonCall. The error I'm seeing is

┌ Error: Error loading PythonCall.jl
│   err = failed to clone from [email protected]:2255/repos/ARTime.git, error: GitError(Code:ERROR, Class:SSH, Failed to retrieve list of SSH authentication methods: Failed getting response)

I'm not using the default .ssh/id_rsa so I enter the path to the private key when prompted. I can clone the repository using git outside of PythonCall using the SSH key.

@cjdoris
Copy link
Collaborator

cjdoris commented Dec 6, 2021

Is the URL definitely correct? The convention is to use the suffix .jl on Julia package repos.

Otherwise try adding the package from the Julia REPL to see if it is an issue with PythonCall (I doubt it is).

@markNZed
Copy link
Author

markNZed commented Dec 7, 2021

You are right that it is not PythonCall. I could reproduce the problem in the REPL. Sorry for not trying that and thanks for the suggestion. I created the repo before I learnt of the .jl convention and I think the URL is correct. The Julia creators must own GitHub stock ;)

@markNZed markNZed closed this as completed Dec 7, 2021
@markNZed
Copy link
Author

markNZed commented Dec 7, 2021

It seems there is an issue with a non-standard SSH port. The message in the REPL has swapped : for /

(@v1.7) pkg> add user@domain:2222/git-server/repos/ARTime.git
     Cloning git-repo `ssh://user@domain/2222/git-server/repos/ARTime.git`

I was using:

Pkg.setprotocol!(domain = "domain", protocol = "ssh")

It started working with:

(@v1.7) pkg> add ssh://user@domain:2222/git-server/repos/ARTime.git

@cjdoris
Copy link
Collaborator

cjdoris commented Dec 7, 2021

Great glad it's working. If you think that's a bug in Julia, report it over on the Julia repo.

@markNZed
Copy link
Author

I created JuliaLang/Pkg.jl#2894

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

2 participants