-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
[FEAT] ssh access to container #128
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
We have no plans to add SSH to our containers. We would assume if you're already deploying the container on the server that you'd have SSH access to said server. If you really must add SSH, you can manually add it via https://github.com/linuxserver/docker-mods/tree/universal-package-install and configure it yourself. |
Fair enough. Thank you for responding so quickly :) In case it's useful to anyone else, I think I've got this working by -
I can now connect to the container over ssh, but need to pass some environmental variables to the ssh session, which I do as follows -
(substitute 8338 for whichever port you've mapped to port 22 on the container) It feels a bit hacky, and I'm not certain that all of the exported variables are necessary (or if I've missed any), so feel free to suggest improvements. I just wanted to put this here in case it helps :) |
Is this a new feature request?
Wanted change
Given that beets is a command line program, would it be possible to add direct shell access to the docker container?
Reason for change
The docs says that you can connect to the docker container using
docker exec -it -u abc beets bash
, but that supposes you are running the container from the same machine that you are using when you want to run beets. Adding ssh access would allow you to run the container (and store its data) on a separate machine (eg on a home server).I realise that you can ssh into the home server and then run the
docker exec
command from there, but it would be nice if there was an option to eliminate the extra step.Proposed code change
Perhaps have additional environmental variables (SSH_USER, SSH_PASS) which, if set, enable sshd with those login details?
I've tried to add sshd to the container via custom-services.d and custom-cont-init.d, and while this works as far as allowing me to connect to the container, the
beet
command isn't available (it looks like the user who has connected via ssh is missing /lsiopy/bin from PATH - but if I add that manually to the PATH,beet config -e
doesn't work ("error: Could not edit configuration: [Errno 2] No such file or directory"), so it feels like I'm missing something... assuming this is even a valid route to achieve what I'm looking for :) )The text was updated successfully, but these errors were encountered: