Giter Site home page Giter Site logo

closed by remote host about docker-ssh HOT 7 OPEN

jeroenpeeters avatar jeroenpeeters commented on July 20, 2024 2
closed by remote host

from docker-ssh.

Comments (7)

virtimus avatar virtimus commented on July 20, 2024

Take a look into "docker logs [container name]"
You can also bring some debug output on (server.coffee):

options =
privateKey: fs.readFileSync keypath
debug: (str) ->
log.info 'ssh2Debug:', str

from docker-ssh.

lextiz avatar lextiz commented on July 20, 2024

Got very similar error the logs are:


> [email protected] start /usr/src/app
> ./node_modules/forever/bin/forever -c ./node_modules/coffee-script/bin/coffee server.coffee | ./node_modules/bunyan/bin/bunyan

warn:    --minUptime not set. Defaulting to: 1000ms
warn:    --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
[2018-12-21T08:45:28.114Z]  INFO: sshServer/33 on dc38db9760ba: Docker filter
    filter: {
      "name": [
        "^/444c3b6a64a6$"
      ]
    }
[2018-12-21T08:45:28.155Z]  INFO: webserver/33 on dc38db9760ba: Listening (host=::, port=8022)
[2018-12-21T08:45:28.156Z]  INFO: sshServer/33 on dc38db9760ba: Docker-SSH ~ Because every container should be accessible
[2018-12-21T08:45:28.156Z]  INFO: sshServer/33 on dc38db9760ba: Listening (host=0.0.0.0, port=22)
[2018-12-21T08:45:40.611Z]  INFO: sshServer/33 on dc38db9760ba: Client connected (clientIp=172.17.0.1)
[2018-12-21T08:45:40.690Z] ERROR: noAuthHandler/33 on dc38db9760ba: NoAuthentication handler is handling the authentication! This is INSECURE!
[2018-12-21T08:45:40.776Z]  INFO: sessionHandler/33 on dc38db9760ba: Opening shell
/usr/src/app/src/session-handler-factory.coffee:21
      for (i = j = 0, ref = length - text.length; 0 <= ref ? j <= ref : j >= ref; i = 0 <= ref ? ++j : --j) {
                                         ^

TypeError: Cannot read property 'length' of undefined
  at /usr/src/app/src/session-handler-factory.coffee:7:41
  at spaces (/usr/src/app/src/session-handler-factory.coffee:25:7)
  at header (/usr/src/app/src/session-handler-factory.coffee:13:34)
  at Session.<anonymous> (/usr/src/app/src/session-handler-factory.coffee:81:28)
  at emitTwo (events.js:106:13)
  at Session.emit (events.js:191:7)
  at SSH2Stream.onREQUEST (/usr/src/app/node_modules/ssh2/lib/server.js:653:16)
  at emitOne (events.js:96:13)
  at SSH2Stream.emit (events.js:188:7)
  at parse_CHANNEL_REQUEST (/usr/src/app/node_modules/ssh2-streams/lib/ssh.js:4356:8)
  at parsePacket (/usr/src/app/node_modules/ssh2-streams/lib/ssh.js:3727:12)
  at SSH2Stream._transform (/usr/src/app/node_modules/ssh2-streams/lib/ssh.js:551:13)
  at SSH2Stream.Transform._read (_stream_transform.js:167:10)
  at SSH2Stream._read (/usr/src/app/node_modules/ssh2-streams/lib/ssh.js:212:15)
  at SSH2Stream.Transform._write (_stream_transform.js:155:12)
  at doWrite (_stream_writable.js:331:12)
  at writeOrBuffer (_stream_writable.js:317:5)
  at SSH2Stream.Writable.write (_stream_writable.js:243:11)
  at Socket.ondata (_stream_readable.js:555:20)
  at emitOne (events.js:96:13)
  at Socket.emit (events.js:188:7)
  at readableAddChunk (_stream_readable.js:176:18)
  at Socket.Readable.push (_stream_readable.js:134:10)
  at TCP.onread (net.js:547:20)

error: Forever detected script exited with code: 1

from docker-ssh.

lextiz avatar lextiz commented on July 20, 2024

Used the container ID instead of the container name.

from docker-ssh.

shouldsee avatar shouldsee commented on July 20, 2024

is there any update of this?

from docker-ssh.

javimosch avatar javimosch commented on July 20, 2024

Apparently, this error occurs when the container binding is not working.
Try using container id instead of the container name as mentioned above and it should not happen.

from docker-ssh.

chungyan5 avatar chungyan5 commented on July 20, 2024

hi all,
i got this kind of error too. It is the error connecting containers between this ssh and objective container.

Finally, i change this container name syntax and works now ==> -e FILTERS={"name":["^/orig_container_name$"]}
It is my fault in syntax as all " instead.

Just sharing and reminder to new comer.

from docker-ssh.

kristijanPetr avatar kristijanPetr commented on July 20, 2024

hi all,

I've had same issue and got it to work with this regex: FILTERS={\"name\":[\"^container-name\"]}
Someone may find it helpful.

from docker-ssh.

Related Issues (20)

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.