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

No sshd service running inside container #112

Open
huornlmj opened this issue Aug 4, 2023 · 0 comments
Open

No sshd service running inside container #112

huornlmj opened this issue Aug 4, 2023 · 0 comments

Comments

@huornlmj
Copy link

huornlmj commented Aug 4, 2023

CMD ["/bin/ash", "-c", "/usr/sbin/sshd -D & nc -lkp 9999 -e /script.sh"]

After deployment and using nc to connect to the port 9999, I receive the "Where am I?" prompt. I go go the /root/.ssh/ directory to locate the private key and run:

$ ssh root@localhost -i id_rsa

But I don't get a returning connection or response. There doesn't appear to be any SSH service running or listening in the container on port 22.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant