Comments (7)
Unsure if related, but sometimes docker-ssh logs also this error:
docker-ssh | [2019-10-06T14:57:25.199Z] INFO: sshServer/38 on a0be7e038ef6: Client connected (clientIp=172.18.0.1)
docker-ssh | [2019-10-06T14:57:25.231Z] ERROR: noAuthHandler/38 on a0be7e038ef6: NoAuthentication handler is handling the authentication! This is INSECURE!
docker-ssh | [2019-10-06T14:57:25.252Z] INFO: sessionHandler/38 on a0be7e038ef6: Opening shell
docker-ssh | /usr/src/app/src/session-handler-factory.coffee:21
docker-ssh | for (i = j = 0, ref = length - text.length; 0 <= ref ? j <= ref : j >= ref; i = 0 <= ref ? ++j : --j) {
docker-ssh | ^
docker-ssh |
docker-ssh | TypeError: Cannot read property 'length' of undefined
docker-ssh | at /usr/src/app/src/session-handler-factory.coffee:7:41
docker-ssh | at spaces (/usr/src/app/src/session-handler-factory.coffee:25:7)
docker-ssh | at header (/usr/src/app/src/session-handler-factory.coffee:13:34)
docker-ssh | at Session.<anonymous> (/usr/src/app/src/session-handler-factory.coffee:81:28)
docker-ssh | at emitTwo (events.js:106:13)
docker-ssh | at Session.emit (events.js:191:7)
docker-ssh | at SSH2Stream.onREQUEST (/usr/src/app/node_modules/ssh2/lib/server.js:653:16)
docker-ssh | at emitOne (events.js:96:13)
docker-ssh | at SSH2Stream.emit (events.js:188:7)
docker-ssh | at parse_CHANNEL_REQUEST (/usr/src/app/node_modules/ssh2-streams/lib/ssh.js:4356:8)
docker-ssh | at parsePacket (/usr/src/app/node_modules/ssh2-streams/lib/ssh.js:3727:12)
docker-ssh | at SSH2Stream._transform (/usr/src/app/node_modules/ssh2-streams/lib/ssh.js:551:13)
docker-ssh | at SSH2Stream.Transform._read (_stream_transform.js:167:10)
docker-ssh | at SSH2Stream._read (/usr/src/app/node_modules/ssh2-streams/lib/ssh.js:212:15)
docker-ssh | at SSH2Stream.Transform._write (_stream_transform.js:155:12)
docker-ssh | at doWrite (_stream_writable.js:331:12)
docker-ssh | at writeOrBuffer (_stream_writable.js:317:5)
docker-ssh | at SSH2Stream.Writable.write (_stream_writable.js:243:11)
docker-ssh | at Socket.ondata (_stream_readable.js:555:20)
docker-ssh | at emitOne (events.js:96:13)
docker-ssh | at Socket.emit (events.js:188:7)
docker-ssh | at readableAddChunk (_stream_readable.js:176:18)
docker-ssh | at Socket.Readable.push (_stream_readable.js:134:10)
docker-ssh | at TCP.onread (net.js:547:20)
docker-ssh |
docker-ssh | error: Forever detected script exited with code: 1
docker-ssh | error: Script restart attempt #2
docker-ssh was started via docker-compse with
image: jeroenpeeters/docker-ssh
container_name: docker-ssh
environment:
- AUTH_MECHANISM=noAuth
- FILTERS='{"name":["^/container-dev$$"]}'
ports:
- "22:22"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
from docker-ssh.
The issue is actual. I observe the error which @laur89 describe and after this I see the error from the @tkambler message when I try to make ssh connection from one container to another.
UPD: as result I use https://github.com/linuxserver/docker-openssh-server
from docker-ssh.
Im getting the same error, but without exception
from docker-ssh.
the same error for me. unstarred the repo because the ticket is already 3 years old and there's no activity around it
from docker-ssh.
Update from my side. The bug appears on Mac OS docker, but everything works on Linux host system:
To reproduce:
docker run --name myubuntu --rm -d ubuntu:20.04 sleep 1000
docker run -d -p 2222:22 -v /var/run/docker.sock:/var/run/docker.sock -e FILTERS="{\"name\":[\"^/myubuntu$\"]}" -e AUTH_MECHANISM=simpleAuth -e AUTH_USER=ubuntu -e AUTH_PASSWORD=1234 jeroenpeeters/docker-ssh
ssh ubuntu@localhost -p 2222
from docker-ssh.
Hello!
I was having this issue on a Linux host system as well, with a custom container. This is what worked for me, in case it can be useful for someone else:
ON SERVER
docker run -e FILTERS={"name":["^/my_container$"]} -e AUTH_MECHANISM=simpleAuth -e AUTH_USER=ubuntu -e AUTH_PASSWORD=1234 --name sshd-web-server1 -p 2222:22 --rm -v /var/run/docker.sock:/var/run/docker.sock jeroenpeeters/docker-ssh
ON CLIENT
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -t ubuntu@localhost -p 2222
First parameter ("-oKexAlgorithms") was to solve this error:
"Unable to negotiate with 127.0.0.1 port 2222: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1"
Parameter ("-t") solved the other two errors and allowed me to access (as suggested here: [https://stackoverflow.com/questions/10330678/gitolite-pty-allocation-request-failed-on-channel-0])
from docker-ssh.
@silgonel that got me to this: Unable to negotiate with 127.0.0.1 port 2222: no matching host key type found. Their offer: ssh-rsa
@jeroenpeeters is this project abandoned?
from docker-ssh.
Related Issues (20)
- How to get this to work with latest Alpine image? HOT 1
- TypeError: Cannot read property 'length' of undefined HOT 4
- id_rsa is a private key... HOT 3
- Why is there a private RSA key in this repository? HOT 1
- tcp forwarding is not allowed
- error: Forever detected script exited with code: 1
- Does publicKey authentication work for Web Terminal also?
- Why is container deprecated
- Commented authorized_keys file bug
- Malformed packet error with x2goclient
- Type error: resizeTerm is not a function HOT 2
- closed by remote host HOT 7
- Usage as a reverse ssh tunnel HOT 1
- Webconsole timeout
- invalid reference format: repository name must be lowercase
- Is there a Fork which has evolved further? HOT 1
- Web terminal not working HOT 1
- Works but issues errors
- VSCode and Remote-SSH Extension HOT 1
- Is this unmaintained
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 docker-ssh.