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

error: unknown ssh key when re-connecting after ~5 minutes #77

Closed
zeylos opened this issue Nov 12, 2018 · 1 comment
Closed

error: unknown ssh key when re-connecting after ~5 minutes #77

zeylos opened this issue Nov 12, 2018 · 1 comment
Labels

Comments

@zeylos
Copy link

zeylos commented Nov 12, 2018

Hi,

What happened:
When trying to connect to the admin cli after ~5min of inactivity :
error: unknown ssh key
I also had errors where I could connect but he couldn't find informations in the database, like usergroups.

What you expected to happen:
Connecting successfully

How to reproduce it (as minimally and precisely as possible):
Connect as admin, disconnect, wait for 5 minutes, connect again.

Anything else we need to know?:
Looking at the logs i found this

Nov 12 16:10:26 sshportal[1933]: [mysql] 2018/11/12 16:10:26 packets.go:36: unexpected EOF
Nov 12 16:10:30 sshportal[1933]: [mysql] 2018/11/12 16:10:30 connection.go:372: invalid connection

Looks like it's related to this ? go-sql-driver/mysql#674

Environment:

  • sshportal --version
/usr/local/go/bin/sshportal --version            
sshportal version 1.8.0+dev ()   
  • ssh sshportal info
debug mode (server): false                                                                                                                                   
Hostname: **
CPUs: 2
Demo mode: false
DB Driver: mysql
DB Conn: sshportal:****@tcp(127.0.0.1:3306)/sshportal?charset=utf8&parseTime=true&loc=Local
Bind Address: :2222
System Time: 2018-11-12T16:34:30.907853325+01:00
OS Type: linux
OS Architecture: amd64
Go routines: 96
Go version (build): go1.10.3
Uptime: 73h40m41.205006889s
User ID: 1
User email: root@localhost
Version: 1.8.0+dev
GIT SHA: 
GIT Branch: 
GIT Tag: 
  • OS (e.g. from /etc/os-release):
cat /etc/debian_version                                                                                                                   
9.5                
  • install method (e.g. go/docker/brew/...): go
@moul moul added the bug label Nov 18, 2018
@moul
Copy link
Owner

moul commented Sep 15, 2020

Closing the issue as I plan to work on the v2 of this project and I need to make some cleanup in the issues see #210

@moul moul closed this as completed Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants