SSH connection closed after successfully established

  • Hi all,


    I tried to SSH to OMV via Windows CMD with:

    ssh root@ip

    After enter the password the below message showed:


    Linux NAS 6.12.12+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.12-1~bpo12+1 (2025-02-23) x86_64


    The programs included with the Debian GNU/Linux system are free software;

    the exact distribution terms for each program are described in the

    individual files in /usr/share/doc/*/copyright.


    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent

    permitted by applicable law.

    Last login: Mon Mar 3 16:45:30 2025 from my_ip

    Connection to omv_ip closed.


    I then tried -vvv and got the following messages:


    debug3: send packet: type 50

    debug2: we sent a password packet, wait for reply

    debug3: receive packet: type 52

    Authenticated to omv_ip ([omv_ip]:22) using "password".

    debug1: channel 0: new session [client-session] (inactive timeout: 0)

    debug3: ssh_session2_open: channel_new: 0

    debug2: channel 0: send open

    debug3: send packet: type 90

    debug1: Requesting no-more-sessions@openssh.com

    debug3: send packet: type 80

    debug1: Entering interactive session.

    debug1: pledge: filesystem

    debug3: client_repledge: enter

    debug1: ENABLE_VIRTUAL_TERMINAL_INPUT is supported. Reading the VTSequence from console

    debug3: This windows OS supports conpty

    debug1: ENABLE_VIRTUAL_TERMINAL_PROCESSING is supported. Console supports the ansi parsing

    debug3: Successfully set console output code page from:65001 to 65001

    debug3: Successfully set console input code page from:936 to 65001

    debug3: receive packet: type 80

    debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0

    debug3: client_input_hostkeys: received RSA key SHA256:zL8ixrGO7gd6KTlQq7NzhsP8kiV2LgIrxPZM2OdjvZY

    debug3: client_input_hostkeys: received ECDSA key SHA256:FeKghTFrNmFBpzPfDvDX8m4i7KdjsoNxzK2E62ay4Fg

    debug3: client_input_hostkeys: received ED25519 key SHA256:OHyn7hcT0unz7KBMBAYnvN6dWr5kVAdu6yLQn6GsoU4

    debug1: client_input_hostkeys: searching C:\\Users\\Zichen/.ssh/known_hosts for omv_ip / (none)

    debug3: hostkeys_foreach: reading file "C:\\Users\\Zichen/.ssh/known_hosts"

    debug3: hostkeys_find: found ssh-ed25519 key under different name/addr at C:\\Users\\Zichen/.ssh/known_hosts:13

    debug3: hostkeys_find: found ssh-rsa key under different name/addr at C:\\Users\\Zichen/.ssh/known_hosts:14

    debug3: hostkeys_find: found ecdsa-sha2-nistp256 key under different name/addr at C:\\Users\\Zichen/.ssh/known_hosts:15

    debug3: hostkeys_find: found ssh-ed25519 key at C:\\Users\\Zichen/.ssh/known_hosts:19

    debug1: client_input_hostkeys: searching C:\\Users\\Zichen/.ssh/known_hosts2 for omv_ip / (none)

    debug3: Failed to open file:C:/Users/Zichen/.ssh/known_hosts2 error:2

    debug1: client_input_hostkeys: hostkeys file C:\\Users\\Zichen/.ssh/known_hosts2 does not exist

    debug3: client_input_hostkeys: 3 server keys: 2 new, 18446744073709551615 retained, 2 incomplete match. 0 to remove

    debug1: client_input_hostkeys: host key found matching a different name/address, skipping UserKnownHostsFile update

    debug3: client_repledge: enter

    debug3: receive packet: type 91

    debug2: channel_input_open_confirmation: channel 0: callback start

    debug2: fd 3 setting TCP_NODELAY

    debug2: client_session2_setup: id 0

    debug2: channel 0: request pty-req confirm 1

    debug3: send packet: type 98

    debug2: channel 0: request shell confirm 1

    debug3: send packet: type 98

    debug3: client_repledge: enter

    debug1: pledge: fork

    debug2: channel_input_open_confirmation: channel 0: callback done

    debug2: channel 0: open confirm rwindow 0 rmax 32768

    debug3: receive packet: type 99

    debug2: channel_input_status_confirm: type 99 id 0

    debug2: PTY allocation request accepted on channel 0

    debug2: channel 0: rcvd adjust 2097152

    debug3: receive packet: type 99

    debug2: channel_input_status_confirm: type 99 id 0

    debug2: shell request accepted on channel 0

    Linux NAS 6.12.12+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.12-1~bpo12+1 (2025-02-23) x86_64


    The programs included with the Debian GNU/Linux system are free software;

    the exact distribution terms for each program are described in the

    individual files in /usr/share/doc/*/copyright.


    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent

    permitted by applicable law.

    Last login: Mon Mar 3 16:57:14 2025 from my_ip

    debug3: receive packet: type 96

    debug2: channel 0: rcvd eof

    debug2: channel 0: output open -> drain

    debug2: channel 0: obuf empty

    debug2: chan_shutdown_write: channel 0: (i0 o1 sock -1 wfd 5 efd 6 [write])

    debug2: channel 0: output drain -> closed

    debug3: receive packet: type 98

    debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0

    debug3: receive packet: type 98

    debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0

    debug2: channel 0: rcvd eow

    debug2: chan_shutdown_read: channel 0: (i0 o3 sock -1 wfd 4 efd 6 [write])

    debug2: channel 0: input open -> closed

    debug3: receive packet: type 97

    debug2: channel 0: rcvd close

    debug3: channel 0: will not send data after close

    debug2: channel 0: almost dead

    debug2: channel 0: gc: notify user

    debug3: Successfully set console output code page from 65001 to 65001

    debug3: Successfully set console input code page from 65001 to 936

    debug2: channel 0: gc: user detached

    debug2: channel 0: send close

    debug3: send packet: type 97

    debug2: channel 0: is dead

    debug2: channel 0: garbage collecting

    debug1: channel 0: free: client-session, nchannels 1

    debug3: channel 0: status: The following connections are open:

    #0 client-session (t4 [session] r0 i3/0 o3/0 e[write]/0 fd -1/-1/6 sock -1 cc -1 io 0x00/0x00)


    debug3: send packet: type 1

    Connection to omv_ip closed.

    Transferred: sent 1884, received 2976 bytes, in 0.7 seconds

    Bytes per second: sent 2774.7, received 4382.9

    debug1: Exit status -1


    I found no errors in it and sshd server log.

    Please help ;(

  • chente

    Approved the thread.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!