SSH2_MSG_UNIMPLEMENTED packet error
Hi,
I have been using WinSCP in a script to download files each morning for a number of years, has worked great. Until this weekend when the company on the server side upgraded their server and after making the necessary changes I get a Disconnected: Server protocol violation: unexpected SSH2_MSG_UNIMPLEMENTED packet response when trying to perform the $session.Open($sessionOptions) line in my PowerShell script.
Doing my research I find that this error seems related to the Key Exchange Algorithm but I can't find anything on how to adjust this algorithm in code.
I reached out to the company we are working with and they informed me that the new server uses the ssh-rsa key, 2048-bit and they provided me with the fingerprint.
So I replaced this fingerprint in my script file:
$sessionOptions.SshHostKeyFingerprint = "ssh-dss 2048 <thekey>"
With:
$sessionOptions.SshHostKeyFingerprint = "ssh-rsa 2048 <newkey>"
I entered the new host name and password they provided. Username remained the same.
Note that the host name, username and password combination all word in a competing FTP application.
So what am I missing? I also ran the WinSCP console and receive the same error message.
Any thoughts?
Thanks in advance!
I have been using WinSCP in a script to download files each morning for a number of years, has worked great. Until this weekend when the company on the server side upgraded their server and after making the necessary changes I get a Disconnected: Server protocol violation: unexpected SSH2_MSG_UNIMPLEMENTED packet response when trying to perform the $session.Open($sessionOptions) line in my PowerShell script.
Doing my research I find that this error seems related to the Key Exchange Algorithm but I can't find anything on how to adjust this algorithm in code.
I reached out to the company we are working with and they informed me that the new server uses the ssh-rsa key, 2048-bit and they provided me with the fingerprint.
So I replaced this fingerprint in my script file:
$sessionOptions.SshHostKeyFingerprint = "ssh-dss 2048 <thekey>"
With:
$sessionOptions.SshHostKeyFingerprint = "ssh-rsa 2048 <newkey>"
I entered the new host name and password they provided. Username remained the same.
Note that the host name, username and password combination all word in a competing FTP application.
So what am I missing? I also ran the WinSCP console and receive the same error message.
Any thoughts?
Thanks in advance!