Comments (1)
At the moment we have some issues when trying to use and configure SSH server inside a container.
I tried to use Open SSH
and the alternative Dropbear
.
The current state of the attempts to configure both services is in the draft pull request che-incubator/che-code#327
The main problem that I see at the moment that is user in the container is not properly configured (seems not properly configured). Open SSH
require PAM to be properly configured. But all the changes made in developer container were overwritten by the kubernetes when workspace startup.
Alternative Dropear
service is not very talkative and do not explain in the details the reason of failure.
It says only, that user user
is wrong
Login attempt with wrong user user from 127.0.0.1:34192
Third option I have tried is to build the image based on ubuntu.
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y openssh-server
RUN mkdir /var/run/sshd
# Set root password for SSH access (change 'your_password' to your desired password)
RUN echo 'root:your_password' | chpasswd
RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
It is possible to test how does it work, but locally, not in the container
- Download and launch the service
docker pull quay.io/vgulyy/ssh-ubuntu:test
docker run --name ssh-ubuntu quay.io/vgulyy/ssh-ubuntu:test
- Take the IP address
sudo docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ssh-ubuntu
- Connect to the service
But it does not work if create a container with this image, because of configuration files are overwritten.
from che.
Related Issues (20)
- Prevent users from changing `controller.devfile.io/storage-type` on an existing workspace to avoid confusing & frustrating data loss
- Improve behaviour for Restart From Local Devfile action
- Improve error message of dsc/chectl if OpenShift version cannot be determined
- Devfile 2.3.0 support on the Che-Code side
- Che-Code automatic rebase against upstream VS Code is failed
- Increase DNS timeout for `dsc server:deploy` HOT 2
- Upgrade version of devfile/api to 2.3.0
- Release Eclipse Che 7.89.0
- Che-server devfile V1 cleanup
- Resource monitor doesn't work HOT 2
- Restart from Local Devfile fails if the devfile specifies which container to inject the IDE into HOT 6
- Link to Mattermost is broken in docs HOT 1
- chectl: It seems no check OIDC provider configured using `getEnsureOIDCProviderInstalledTask` Task HOT 3
- Issues with Websockets for Che with Nginx-Ingress Controller. HOT 3
- docs improvement: Managing workspaces $HOME directory persistence HOT 2
- Publish Dev Spaces compatibility matrix HOT 1
- feat: Enable to patch command/args for oauth2-proxy Deployment HOT 2
- Pull Request test check is failing if the PR is opened from the comunity
- Can't build plugin registry on MacOS: Bad GPG signature + other problems HOT 4
- Che-Code white page HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from che.