Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

saity

Re: How to enforce sftp version in command line

Thanks a ton, @Martin
saity

How to enforce sftp version in command line

I am facing the same issue, could you or @martin help me here, only example will also be helpful. Thanks.
PiperRod

Thanks! That corrected my problem.
PiperRod

How to set SFTP protocol version through the command line

I'm using WinSCP 4.0.6 Build 358.

I'm trying to connect to a new vendor. I was receiving the errors
Cannot initialize SFTP protocol. Is the host running a SFTP server?
Exception) Error decoding SFTP packet (111, 4, 111).

I have been able to get around this and connect to them using the Windows interface by setting the Preferred SFTP Protocol Version to 4 for this particular vendor. Now I'm working on automating the upload to them using WinSCP through the command line and I'm back to getting the same error. How can I set the Preferred SFTP Protocol Version through the command line?