Remote side sent disconnect message type 2 (protocol error): "ssh connection closed by server" FATAL ERROR: Remote side
Posted: 12 Jun 2023 04:57
I have a batch file with the following command
plink.exe -ssh SWITCH-IP -l ACCOUNT -pw PASSWORD -v -batch
Plink switches
-l User
-pw Password
-v Verbose – Show all
- Batch Login automatically
-ssh Protocol to be used
C:\temp\1>plink.exe -ssh SWITCH-IP -l admin -pw PASSWORD -v -batch
When the batch script is executed, the following output is generated.
Looking up host "SWITCH-IP" for SSH connection
Connecting to SWITCH-IP port 22
We claim version: SSH-2.0-PuTTY_Release_0.78
Connected to SWITCH-IP
Remote version: SSH-2.0-OpenSSH_5.0
We believe remote version has SSH-2 channel request bug
Using SSH protocol version 2
No GSSAPI security context available
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange using 2048-bit modulus and hash SHA-256 (unaccelerated) with a server-supplied group
Server also has ssh-dss host key, but we don't know it
Host key fingerprint is:
ssh-rsa 2048 SHA256:ZaLpq7BM4pru5nkGqrBwWCAIKgcX2EBLWHvvVzAwYRc
Initialised AES-256 SDCTR (AES-NI accelerated) outbound encryption
Initialised HMAC-SHA-256 (unaccelerated) outbound MAC algorithm
Initialised AES-256 SDCTR (AES-NI accelerated) inbound encryption
Initialised HMAC-SHA-256 (unaccelerated) inbound MAC algorithm
Using username "XXXXXXX"
Attempting keyboard-interactive authentication
Keyboard-interactive authentication prompts from server:
Access granted
End of keyboard-interactive prompts from server
Opening main session channel
Opened main channel
Allocated pty
Started a shell/command
Welcome to the Alcatel-Lucent Enterprise OmniSwitch 6450
Software Version 6.7.2.107.R03 GA, December 05, 2017.
Copyright(c), ALE USA Inc., 2017. All Rights reserved.
OmniSwitch(TM) is a trademark of Alcatel-Lucent Enterprise registered
in the United States Patent and Trademark Office.
SWITCH-IP -> Remote side sent disconnect message type 2 (protocol error): "ssh connection closed by server"
FATAL ERROR: Remote side sent disconnect message
type 2 (protocol error):
"ssh connection closed by server"
How can I fix this issue? Any help welcome
plink.exe -ssh SWITCH-IP -l ACCOUNT -pw PASSWORD -v -batch
Plink switches
-l User
-pw Password
-v Verbose – Show all
- Batch Login automatically
-ssh Protocol to be used
C:\temp\1>plink.exe -ssh SWITCH-IP -l admin -pw PASSWORD -v -batch
When the batch script is executed, the following output is generated.
Looking up host "SWITCH-IP" for SSH connection
Connecting to SWITCH-IP port 22
We claim version: SSH-2.0-PuTTY_Release_0.78
Connected to SWITCH-IP
Remote version: SSH-2.0-OpenSSH_5.0
We believe remote version has SSH-2 channel request bug
Using SSH protocol version 2
No GSSAPI security context available
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange using 2048-bit modulus and hash SHA-256 (unaccelerated) with a server-supplied group
Server also has ssh-dss host key, but we don't know it
Host key fingerprint is:
ssh-rsa 2048 SHA256:ZaLpq7BM4pru5nkGqrBwWCAIKgcX2EBLWHvvVzAwYRc
Initialised AES-256 SDCTR (AES-NI accelerated) outbound encryption
Initialised HMAC-SHA-256 (unaccelerated) outbound MAC algorithm
Initialised AES-256 SDCTR (AES-NI accelerated) inbound encryption
Initialised HMAC-SHA-256 (unaccelerated) inbound MAC algorithm
Using username "XXXXXXX"
Attempting keyboard-interactive authentication
Keyboard-interactive authentication prompts from server:
Access granted
End of keyboard-interactive prompts from server
Opening main session channel
Opened main channel
Allocated pty
Started a shell/command
Welcome to the Alcatel-Lucent Enterprise OmniSwitch 6450
Software Version 6.7.2.107.R03 GA, December 05, 2017.
Copyright(c), ALE USA Inc., 2017. All Rights reserved.
OmniSwitch(TM) is a trademark of Alcatel-Lucent Enterprise registered
in the United States Patent and Trademark Office.
SWITCH-IP -> Remote side sent disconnect message type 2 (protocol error): "ssh connection closed by server"
FATAL ERROR: Remote side sent disconnect message
type 2 (protocol error):
"ssh connection closed by server"
How can I fix this issue? Any help welcome