-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Cannot use SSH URL to point to a private GitHub repo containing a custom inference script when deploying a model #2442
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
Comments
Getting the same thing with this logs: Cloning into '/tmp/tmp9kr9rdwo'... |
the ssh url starting with git@ doesn't work for me only ssh://git@ for bug in this thread commenting out the line seemed to do the trick: |
I had to remove this code block entirely to get it to work, as shown in #3645 |
The SageMaker Python SDK docs imply that you can use your own
ssh/config
on a notebook instanceBut, the code for cloning repos with an SSH URL uses the
GIT_SSH
environment variable (to make sure that the user isn't prompted for credentials)sagemaker-python-sdk/src/sagemaker/git_utils.py
Lines 280 to 287 in 9f399ce
The documentation for git says, however, that whatever
GIT_SSH
points to will override anyssh/config
you have set up.So this means that you can't clone a private repo using an SSH URL. The only way to clone it would be to use a GitHub Personal Access Token (PAT) and an HTTPS URL.
To reproduce, use this template code (having an
ssh/config
and a private key set up or not makes no difference in the output behavior):Output (not a very helpful message, but that's a different issue 😉 )
The text was updated successfully, but these errors were encountered: