You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When connecting to old solaris host connection fails and does not return to prompt
Expected Result / Suggestion
When connecting to older solaris host, should connect with no issues.
Or if there is an issue drop the connection.
Also an option to set special ssh options for certain hosts.
Some context
I work on some older solaris hosts that need a special option (KexAlgorithms +diffie-hellman-group1-sha1) enabled in .ssh config. When working thru sshportal it does not transfer this config thru, nor have an option to set these on the host.
Error for sshportal logs:
(/go/src/moul.io/sshportal/pkg/bastion/ssh.go:168)
[2021-10-20 23:25:13] Error 1406: Data too long for column 'err_msg' at row 1
(/go/src/moul.io/sshportal/pkg/bastion/ssh.go:168)
[2021-10-20 23:25:13] [1.28ms] UPDATE sessions SET err_msg = 'ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: [curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha1], server offered: [gss-group1-sha1-toWM5Slw5Ew8Mqkay+al2g== diffie-hellman-group-exchange-sha1 diffie-hellman-group1-sha1]', status = 'closed', stopped_at = '2021-10-20 23:25:13', updated_at = '2021-10-20 23:25:13' WHERE sessions.deleted_at IS NULL AND sessions.id = 463
[0 rows affected or returned ]
sshportal info:
debug mode (server): false
Hostname: 8e5d1cea03cd
CPUs: 2
Demo mode: false
DB Driver: mysql
DB Conn: :@tcp(:3306)/?charset=utf8&parseTime=true&loc=Local
Bind Address: :2222
System Time: 2021-10-20T23:31:56.461636732Z
OS Type: linux
OS Architecture: amd64
Go routines: 75
Go version (build): go1.17.2
Uptime: 29h25m52.0287421s
User ID: 1
User email: admin@localhost
Version: n/a
GIT SHA: n/a
GIT Tag: n/a
Actual Result / Problem
When connecting to old solaris host connection fails and does not return to prompt
Expected Result / Suggestion
When connecting to older solaris host, should connect with no issues.
Or if there is an issue drop the connection.
Also an option to set special ssh options for certain hosts.
Some context
I work on some older solaris hosts that need a special option (KexAlgorithms +diffie-hellman-group1-sha1) enabled in .ssh config. When working thru sshportal it does not transfer this config thru, nor have an option to set these on the host.
Error for sshportal logs:
(/go/src/moul.io/sshportal/pkg/bastion/ssh.go:168)
[2021-10-20 23:25:13] Error 1406: Data too long for column 'err_msg' at row 1
(/go/src/moul.io/sshportal/pkg/bastion/ssh.go:168)
[2021-10-20 23:25:13] [1.28ms] UPDATE
sessions
SETerr_msg
= 'ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: [curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha1], server offered: [gss-group1-sha1-toWM5Slw5Ew8Mqkay+al2g== diffie-hellman-group-exchange-sha1 diffie-hellman-group1-sha1]',status
= 'closed',stopped_at
= '2021-10-20 23:25:13',updated_at
= '2021-10-20 23:25:13' WHEREsessions
.deleted_at
IS NULL ANDsessions
.id
= 463[0 rows affected or returned ]
sshportal info:
debug mode (server): false
Hostname: 8e5d1cea03cd
CPUs: 2
Demo mode: false
DB Driver: mysql
DB Conn: :@tcp(:3306)/?charset=utf8&parseTime=true&loc=Local
Bind Address: :2222
System Time: 2021-10-20T23:31:56.461636732Z
OS Type: linux
OS Architecture: amd64
Go routines: 75
Go version (build): go1.17.2
Uptime: 29h25m52.0287421s
User ID: 1
User email: admin@localhost
Version: n/a
GIT SHA: n/a
GIT Tag: n/a
/ # sshportal --version
sshportal version n/a (n/a)
(running latest docker)
CentOS Linux release 8.1.1911 (Core)
The text was updated successfully, but these errors were encountered: