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! |
Beta Was this translation helpful? Give feedback.
-
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
longrun Dockerfile
sshd_config
Verify 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 ;) |
Beta Was this translation helpful? Give feedback.
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
Beta Was this translation helpful? Give feedback.
All reactions