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

Cannot access ssh key inside tmp folder running in docker contianer #2

Open
LyhengTep opened this issue Sep 7, 2020 · 2 comments
Open

Comments

@LyhengTep
Copy link

Hello there, after following exactly the same as the video tutorial. I got an issue where I was trying to ssh to the remote server from a running container and I say jenkin user doesnt have permission to access to remote key inside tmp folder.

@ShreyasSubhedar
Copy link

change the permission at the exec
docker exec -it -u root jenkins bash "chown jenkins:jenkins -R /tmp/remote-key"

@Salaah01
Copy link

Hello there, after following exactly the same as the video tutorial. I got an issue where I was trying to ssh to the remote server from a running container and I say jenkin user doesnt have permission to access to remote key inside tmp folder.

Use ssh-keygen -t rsa -m PEM -f remote-key to create your ssh key.

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

3 participants