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 packet with ssh connection #887

Open
vinhsts opened this issue Nov 25, 2022 · 0 comments
Open

Error packet with ssh connection #887

vinhsts opened this issue Nov 25, 2022 · 0 comments

Comments

@vinhsts
Copy link

vinhsts commented Nov 25, 2022

Expected behavior

Should connect to server successfully

Actual behavior

Failed to connect server, but it can be connected by using normal cms: ssh user@host

System configuration

  • net-ssh version (6.1.0 or 7.0.1)
  • Ruby version (2.7.0)

Debug

D, [2022-11-25T17:49:46.387186 #89115] DEBUG -- net.ssh.transport.session[21c]: establishing connection to gate.appengine.flow.ch:3022
D, [2022-11-25T17:49:47.262470 #89115] DEBUG -- net.ssh.transport.session[21c]: connection established
I, [2022-11-25T17:49:47.262596 #89115] INFO -- net.ssh.transport.server_version[230]: negotiating protocol version
D, [2022-11-25T17:49:47.262632 #89115] DEBUG -- net.ssh.transport.server_version[230]: local is SSH-2.0-Ruby/Net::SSH_7.0.1 x86_64-darwin21' D, [2022-11-25T17:49:47.671359 #89115] DEBUG -- net.ssh.transport.server_version[230]: remote is SSH-2.0-JSSHProxy'
I, [2022-11-25T17:49:47.671512 #89115] INFO -- net.ssh.transport.algorithms[244]: sending KEXINIT
D, [2022-11-25T17:49:47.671731 #89115] DEBUG -- socket[258]: queueing packet nr 0 type 20 len 500
D, [2022-11-25T17:49:47.671810 #89115] DEBUG -- socket[258]: sent 504 bytes
D, [2022-11-25T17:49:47.671889 #89115] DEBUG -- socket[258]: read 576 bytes
D, [2022-11-25T17:49:47.671964 #89115] DEBUG -- socket[258]: received packet nr 0 type 20 len 572
I, [2022-11-25T17:49:47.671999 #89115] INFO -- net.ssh.transport.algorithms[244]: got KEXINIT from server
I, [2022-11-25T17:49:47.672058 #89115] INFO -- net.ssh.transport.algorithms[244]: negotiating algorithms
D, [2022-11-25T17:49:47.672159 #89115] DEBUG -- net.ssh.transport.algorithms[244]: negotiated:

  • kex: curve25519-sha256
  • host_key: ssh-rsa
  • encryption_server: aes128-ctr
  • encryption_client: aes128-ctr
  • hmac_client: hmac-sha2-256-etm@openssh.com
  • hmac_server: hmac-sha2-256-etm@openssh.com
  • compression_client: none
  • compression_server: none
  • language_client:
  • language_server:
    D, [2022-11-25T17:49:47.672180 #89115] DEBUG -- net.ssh.transport.algorithms[244]: exchanging keys
    D, [2022-11-25T17:49:47.672894 #89115] DEBUG -- socket[258]: queueing packet nr 1 type 30 len 44
    D, [2022-11-25T17:49:47.672943 #89115] DEBUG -- socket[258]: sent 48 bytes
    D, [2022-11-25T17:49:48.291160 #89115] DEBUG -- socket[258]: read 624 bytes
    D, [2022-11-25T17:49:48.291333 #89115] DEBUG -- socket[258]: received packet nr 1 type 31 len 604
    D, [2022-11-25T17:49:48.292940 #89115] DEBUG -- socket[258]: queueing packet nr 2 type 21 len 20
    D, [2022-11-25T17:49:48.293076 #89115] DEBUG -- socket[258]: sent 24 bytes
    D, [2022-11-25T17:49:48.293134 #89115] DEBUG -- socket[258]: received packet nr 2 type 21 len 12
    D, [2022-11-25T17:49:48.293360 #89115] DEBUG -- net.ssh.authentication.session[26c]: beginning authentication of 124842-4721' D, [2022-11-25T17:49:48.293453 #89115] DEBUG -- socket[258]: using encrypt-then-mac D, [2022-11-25T17:49:48.293519 #89115] DEBUG -- socket[258]: queueing packet nr 3 type 5 len 32 D, [2022-11-25T17:49:48.293557 #89115] DEBUG -- socket[258]: sent 68 bytes D, [2022-11-25T17:49:48.885089 #89115] DEBUG -- socket[258]: read 312 bytes D, [2022-11-25T17:49:48.885472 #89115] DEBUG -- socket[258]: received packet nr 3 type 7 len 208 /.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/net-ssh-7.0.1/lib/net/ssh/authentication/session.rb:122:in block in next_message': unexpected message 7 (\a\0\0\0\x01\0\0\0\x0Fserver-sig-algs\0\0\0?rsa-sha2-256,rsa-sha2-512,ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,sk-ecdsa-sha2-nistp256@openssh.com,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,sk-ssh-ed25519@openssh.com) (Net::SSH::Exception)

Can you please help to understand why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant