tmate-io / tmate-ssh-server

tmate SSH server
https://tmate.io
Other
626 stars 146 forks source link

"Session terminated" in every 10-20 seconds #83

Open sn-harikrishnaddepalli opened 4 years ago

sn-harikrishnaddepalli commented 4 years ago

Hello.,

Below is the command triggered :

/opt/tmate-ssh-server/tmate-ssh-server -p 2224 -q 2224 -k /opt/keys -h tmate.example.com

When testing, i am getting "session terminated" in every 10 seconds for new sessions, what is the resolution to avoid seeing "terminated sessions" and avoid causing disruption to remote ssh access ?

Loading key /opt/keys/ssh_host_rsa_key
Loading key /opt/keys/ssh_host_ed25519_key
Accepting connections on :2224
[jUhj...] Spawning daemon ip=10.0.50.11
[jUhj...] tmate version=2.4.0, protocol=6
[jUhj...] sysname=Linux machine=x86_64 release=4.14.154-128.181.amzn2.x86_64 version=#1 SMP Sat Nov 16 21:49:00 UTC 2019 nodename=agent-teams-scm1-0-it-xk94m
[jUhj...] Spawning pty client ip=10.0.50.116
[jUhj...] Client joined (cid=1)
[jUhj...] Client left (cid=1)
[jUhj...] Session terminated¿
[XSbY...] Spawning daemon ip=10.0.50.118
[XSbY...] tmate version=2.4.0, protocol=6
[XSbY...] sysname=Linux machine=x86_64 release=4.14.154-128.181.amzn2.x86_64 version=#1 SMP Sat Nov 16 21:49:00 UTC 2019 nodename=agent-teams-scm1-0-it-xk94m
[XSbY...] Session terminated
[svxn...] Spawning daemon ip=10.0.50.125
[svxn...] tmate version=2.4.0, protocol=6
[svxn...] sysname=Linux machine=x86_64 release=4.14.154-128.181.amzn2.x86_64 version=#1 SMP Sat Nov 16 21:49:00 UTC 2019 nodename=agent-teams-scm1-0-it-xk94m
[svxn...] Session terminated
[3XDm...] Spawning daemon ip=10.0.50.139
[3XDm...] tmate version=2.4.0, protocol=6
[3XDm...] sysname=Linux machine=x86_64 release=4.14.154-128.181.amzn2.x86_64 version=#1 SMP Sat Nov 16 21:49:00 UTC 2019 nodename=agent-teams-scm1-0-it-xk94m
[3XDm...] Session terminated
[xLVd...] Spawning daemon ip=10.0.50.138
[xLVd...] tmate version=2.4.0, protocol=6
[xLVd...] sysname=Linux machine=x86_64 release=4.14.154-128.181.amzn2.x86_64 version=#1 SMP Sat Nov 16 21:49:00 UTC 2019 nodename=agent-teams-scm1-0-it-xk94m
[xLVd...] Session terminated
[jPaV...] Spawning daemon ip=10.0.50.145
[jPaV...] tmate version=2.4.0, protocol=6
[jPaV...] sysname=Linux machine=x86_64 release=4.14.154-128.181.amzn2.x86_64 version=#1 SMP Sat Nov 16 21:49:00 UTC 2019 nodename=agent-teams-scm1-0-it-xk94m
[jPaV...] Session terminated
[jUhj...] Session terminated^C
cryptomilk commented 3 years ago

Which libssh version do you use?

indranilvyasFlipp commented 3 years ago

I've encountered same issue and I'm using tmate/tmate-ssh-server:prod image available on Dockerhub, I tried using latest image and same issue

julienduchesne commented 3 years ago

I'm getting the same issue with the latest image which uses libssh 0.9.5

cryptomilk commented 2 years ago

I think this should be fixed with libssh 0.9.6