I am experiencing the same issue ("Protocol error: Expected control record"). I can scp files to servers, but not from servers. http://www.chiark.greenend.org.uk/~sgtatham/putty/faq.html#faq-pscp-protocol claims it's because the server is outputting something (like from .bashrc). However, I can scp on a different machine pulling from the same server (though maybe it is sending something different since I am logging in via keys on the second server?). But then I can scp to that machine from freedos using password authentication without issue.
In other words:
scp on freedos, transfer from freedos to server "code" works (password auth)
scp on freedos, transfer from server "code" to freedos does not work (Password authentication) ("Protocol error: Expected control record").
scp on lusk, transfer from "code" to lusk works (key authentication)
Last edit: Julien Lamarche 2016-08-16
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have a little problem :) I have 2 servers with
(Linux MDK9.1 and MDK10.0)
if I copy from DOS machine to remote server with
scp2dos , program copying files with anyone mask good
but....
if I copy any files from server
to local machine MSDOS, program write protocol error
here:
--------------------------------------------------
Waterloo TCP/IP setup
Ignoring "PKT.RXMODE" setting
SCP2DOS v0.1.1
Waiting for remote host to connect...
Identification Exchange
Remote version: SSH-1.99-OpenSSH_3.6.1p2
Local version: SSH-2.0-SSHDOS_0.1.1
Receiving host's key exchange packet
Sending our key exchange packet
Diffie-Hellman group key exchange
Start using agreed keys
Waiting for host ACK
Initializing encryption and hash functions
Requesting authorization
Trying password authorization
Opening session channel
Receiving:
Protocol error: Expected control record
-----------------------------------------------------
and here is 2 commads :
its good:
SCP2D386.EXE -v -l -s password .\*.bat
user@192.168.0.10:/home/user
its bad:
SCP2Dos.EXE -v -l -s password
user@192.168.0.10:/home/user/*.bat .\az
can you help mi please??
Thank you
I am experiencing the same issue ("Protocol error: Expected control record"). I can scp files to servers, but not from servers. http://www.chiark.greenend.org.uk/~sgtatham/putty/faq.html#faq-pscp-protocol claims it's because the server is outputting something (like from .bashrc). However, I can scp on a different machine pulling from the same server (though maybe it is sending something different since I am logging in via keys on the second server?). But then I can scp to that machine from freedos using password authentication without issue.
In other words:
scp on freedos, transfer from freedos to server "code" works (password auth)
scp on freedos, transfer from server "code" to freedos does not work (Password authentication) ("Protocol error: Expected control record").
scp on lusk, transfer from "code" to lusk works (key authentication)
Last edit: Julien Lamarche 2016-08-16