Coder Social home page Coder Social logo

rsshd's Introduction

Dear Reader 📖

  • 🗞 I seldom update my blog
  • 🛠 I often create or update private OSS projects here, at bitbucket and gitlab
  • 💰 I sometimes create or update corporate OSS projects, formerly at Yanzi, HealthIntegrator and Mitigram, now at GpsGate
  • 💖 I have a special love for the misunderstood Tcl
  • 🐚 Lately I have focused on POSIX shell to better target the embedded and devops spaces
  • 🐳 I have a gist that, from a running container, prints out the command-line docker command to create it.
  • 🐋 I have a script to rebase a slim Docker image on top of another one without changing its original configuration.
  • 🏢 I am always open for opportunities in the beautiful Stockholm, or remote. But I am enjoying my time at GpsGate.

rsshd's People

Contributors

bulzipke avatar efrecon avatar slaesh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rsshd's Issues

Please expose more/all ports

Can you expose the ports 1001-65500 in your container?

This because I wanted to publish ports 33000 until 33100 for my container (ports in the range of 10000-10100) are used elsewhere. So I passed this to the container: -p 33300-33400:10000-10100

This works, but it gets very confusing:
I would start with this.

ssh -fN -R 10000:localhost:22 -p 2222 [email protected]

But I need to connect with this:
ssh -p 33300 user@localhost

That's really confusing. And exposing all the ports and just specify a few of them using -p will solve this problem.

I can't authenticate with the password set

Am I doing it wrong?

I am installing it with:

docker run -d --restart=always -p 2222:22 --name rsshd -p 22000-22100:22000-22100 -e PASSWORD=verysecret -v /volume1/docker/rsshd/keys:/etc/ssh/keys -v /volume1/docker/rsshd/clients:/root/.ssh efrecon/rsshd

This is my stdout/stderr capture:

date stream content
2018-11-27 20:48:11 stderr Connection closed by 172.17.0.1 port 41322 [preauth]
2018-11-27 20:48:11 stderr Failed password for root from 172.17.0.1 port 41322 ssh2
2018-11-27 20:48:10 stderr Failed password for root from 172.17.0.1 port 41322 ssh2
2018-11-27 20:48:08 stderr Failed password for root from 172.17.0.1 port 41322 ssh2
2018-11-27 20:48:06 stderr Connection closed by 172.17.0.1 port 41321 [preauth]
2018-11-27 20:48:05 stderr Connection closed by 172.17.0.1 port 41316 [preauth]
2018-11-27 20:47:26 stderr Connection closed by 172.17.0.1 port 41085 [preauth]
2018-11-27 20:47:23 stderr Failed password for root from 172.17.0.1 port 41085 ssh2
2018-11-27 20:47:21 stderr Failed password for root from 172.17.0.1 port 41085 ssh2
2018-11-27 20:47:17 stderr Connection closed by 172.17.0.1 port 41080 [preauth]
2018-11-27 20:47:17 stderr Connection closed by 172.17.0.1 port 41078 [preauth]
2018-11-27 20:46:52 stderr Server listening on :: port 22.
2018-11-27 20:46:52 stderr Server listening on 0.0.0.0 port 22.
2018-11-27 20:46:52 stdout Password for 'root' changed

Allow to set debug level of sshd

I would like to to specify debug level through a -e DEBUG_LEVEL=<level>

Ideally it would:

  • Behave as is now when absent or -e DEBUG_LEVEL=0
  • Pass -d to sshd when -e DEBUG_LEVEL=1
  • Pass -d -d to sshd when -e DEBUG_LEVEL=2
  • Pass -d -d -d to sshd when -e DEBUG_LEVEL>=3

-e SSHD_PARAMS=<extra_commandline_args>
Could be a possibility too!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.