Error decoding SFTP packet (9,4,9)

Advertisement

padi
Joined:
Posts:
1
Location:
malaysia

Error decoding SFTP packet (9,4,9)

Hope admin can help me... I used latest version WinSCP... when I tried to drag @ transfer my file to switch 3com E5500EI. I get this error
Error decoding SFTP packet (9,4,9)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,851
Location:
Prague, Czechia

Re: What was the solution?

@S. Ahmed: Thanks for your report.

Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.

Reply with quote

Advertisement

manto
Guest

Re: Error decoding SFTP packet (22, 4, 22).

So it looks to be version issue

Basically we need to set the ‘Preferred SFTP protocol version’ to 3.

How to do this:
Edit the connection in WinSCP
Open the Advanced menu
Choose Advanced
This will bring up a new popup.
Under Environment click on SFTP.
Change ‘Preferred SFTP protocol version’ to 3
Save the changes.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,851
Location:
Prague, Czechia

Re: Error decoding SFTP packet (22, 4, 22).

@manto: What SFTP server are you connecting to?

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Clément
Guest

Re: What was the solution?

Hello there, I'm pretty late on this but I got the same error too! "Error decoding SFTP packet (9, 4, 9)" can u provide a solution please? :)

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,851
Location:
Prague, Czechia

Re: What was the solution?

@Clément: Please attach a full session log file showing the problem (using the latest version of WinSCP). Use Debug 2 log level.

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Advertisement

Clement Feuillet
Guest

Re: What was the solution?

@martin
  • cfeuillet@172.24.212.53.log (97.55 KB, Private file)
Description: Here's the log file, thanks a lot :)

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,851
Location:
Prague, Czechia

Re: What was the solution?

The server is violating SFTP specification.
Anyway, I've implemented a workaround:
Issue 2272 – Workaround for SFTP servers (Cisco) which omit message field from status response

Can you send me an email, so I can send you back a development version of WinSCP for testing? Please include a link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.

Reply with quote

Advertisement

You can post new topics in this forum