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

support for sftp access via lagoon remote shell, #840

Merged
merged 1 commit into from Jan 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions docker-compose.yaml
Expand Up @@ -192,6 +192,12 @@ services:
- auth-server
ports:
- '2020:2020'
# command:
# - "/usr/sbin/sshd"
# - "-e"
# - "-ddd"
# - "-f"
# - "/etc/ssh/sshd_config"
environment:
- OPENSHIFT_CONSOLE_URL=https://192.168.99.100:8443
user: '111111111'
Expand Down
2 changes: 2 additions & 0 deletions images/php/cli/Dockerfile
Expand Up @@ -19,7 +19,9 @@ RUN apk update \
procps \
coreutils \
postgresql-client \
openssh-sftp-server \
&& apk add nodejs-current nodejs-npm yarn --update-cache --force-overwrite --repository http://dl-cdn.alpinelinux.org/alpine/edge/main/ --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ \
&& ln -s /usr/lib/ssh/sftp-server /usr/local/bin/sftp-server \
&& rm -rf /var/cache/apk/* \
&& curl -L -o /usr/local/bin/composer https://github.com/composer/composer/releases/download/1.6.5/composer.phar \
&& echo "67bebe9df9866a795078bb2cf21798d8b0214f2e0b2fd81f2e907a8ef0be3434 /usr/local/bin/composer" | sha256sum \
Expand Down
3 changes: 3 additions & 0 deletions services/ssh/etc/ssh/sshd_config
Expand Up @@ -37,3 +37,6 @@ Banner none

ClientAliveInterval 60
ClientAliveCountMax 1440 # max keepalive of 24h

# This will allow sftp access
Subsystem sftp sftp-server -u 0002