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
Save Private Repo Credentials for Push/Pull #83
Comments
Thank you for using the Studio Lab! The following instruction would be helpful for you.
|
Hi @icoxfog417, thanks a lot for trying to help me here! Thanks for the doc! I don't know if
Regarding this command and the next you recommended me to execute. Should it be run in a I would have thought that it should be run in a
When I do so, I get the following stdout:
There is a
Any ideas ? |
Here is my fix: "Treat SageMaker Studio as any remote server + set ssh connection with GitHub"
Now the SageMaker Studio GUI doesn't ask for credentials. No need for Private Access Tokens. |
@ArnaudGlt I'm glad you can finally solve the credential issue. If you have not any other problems, please close this issue. You can install I assume that you use |
Hi @icoxfog417, I couldn't use the Here is a try at a fix using For those reading this issue, AWS SageMaker runs on EC2 based on a CentOS like distribution. The package manager for this OS is kudos to: https://computingforgeeks.com/how-to-install-github-cli-on-linux-and-windows/ for the first steps required to install Here is how you can update VERSION=`curl "https://api.github.com/repos/cli/cli/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/' | cut -c2-`
echo $VERSION
curl -sSL https://github.com/cli/cli/releases/download/v${VERSION}/gh_${VERSION}_linux_amd64.tar.gz -o gh_${VERSION}_linux_amd64.tar.gz
tar xvf gh_${VERSION}_linux_amd64.tar.gz
sudo cp gh_${VERSION}_linux_amd64/bin/gh /usr/local/bin/ However, since the echo 'export PATH=$(echo $PATH | sed "s%/usr/local/bin:%%g" | sed "s%/%/usr/local/bin:/%")' > .profile
. .profile
echo $PATH Now, you should read From there you should be able to use the latest version of gh version Then you can try to use Personally, I would stick to the ssh method ;) I'll close the issue when someone will have tried this method successfully. |
@ArnaudGlt I'm sorry for The OS of Studio Lab is Ubuntu as I show the following image. When you install And you can execute I'm not sure Studio Lab has different OS type (CentOS base and Ubuntu base). I can not execute |
Thanks for the feedback @icoxfog417 Here is what I have on my side: I noticed that you were using |
So I understood the problem, it is not related to Studio Lab, my bad. I was discovering the AWS universe, and it was confusing, they are 2 different services and 4 different features with almost the same names. SageMaker Studio Lab: Free and Github community
For a Basic Support Plan, support on SageMaker AWS is inexistant. So, I came here following the doc on AWS. All in all, I am closing this issue, as I realize that it doesn't target the right service. Sorry for that. I just want to say that at this time, |
FWIW, I wrote up a tutorial (with screenshots) about how to do this, here: https://austinlasseter.medium.com/cloning-your-first-repo-to-amazon-sagemaker-studio-lab-992dc7a8c72 |
Is your feature request related to a problem? Please describe.
I created a Private Access Token from my GitHub account and I cloned my private repo through the Git tab in SageMaker Studio. When I did this, my Chrome browser (Windows 11) saved my credentials.
Each time I push/pull to this private repo (for which credentials are required), SageMaker studio asks me to provide my credentials. However, the web browser doesn't recognize the form and I have to manually copy/paste them in the right boxes.
FYI, the Private Access Token it provided only once and it means that I need to have it saved somewhere else.
Describe the solution you'd like
2 possible solutions:
Describe alternatives you've considered
So far 3 alternatives:
Additional context
None
The text was updated successfully, but these errors were encountered: