Replies: 2 comments 1 reply
|
If you must run SSH in the same container, then you need to create a custom S6 "long run" service: https://github.com/just-containers/s6-overlay If you're looking to run a separate SSH container, I'm working on a new version of this: https://github.com/serversideup/docker-ssh Hope this helps! |
1 reply
|
For others tackling this problem, my working, but unsatisfactory "solution" Azure requires the user to be root and, as far as I know, you cannot change the user to be #/etc/s6-overlay/s6-rc.d/ssh-server/run
#!/command/execlineb -P
s6-setsid -q -- /bin/sh -c "echo Docker! | su -c '/usr/sbin/sshd -D -e'"#/etc/s6-overlay/s6-rc.d/ssh-server/type
longrunDockerfilesshd_configVerify that it works, the log should display on startup I'm quite sure there is a better way to do this. If you know it, let me know ;) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi Guys,
I am facing a issue when I try to add a SSH server for Azure App Service
I have already added a 00-custom-script.sh to /etc/entrypoint.d/,
then run on it, it's got error
It seems need running this command in root permission
Container start log:
Dockerfile:
99-server-script.sh
then I go in container command line, run
service ssh status sshd is not running ... failed!Please help !! Many Thanks guys
All reactions