Skip to content

scp error: protocol error: filename does not match request #1019

@FlexMcMurphy

Description

@FlexMcMurphy

Hello,

PyScripter-3.6.3-x64-Setup.exe on Windows 7
OpenSSH-Win32.zip Version: v8.1.0.0p1-Beta installed on Win 7 and added to the PATH.
Trying to remote edit/debug script on OSMC running on a Raspberry Pi on the same LAN.

My keys are set up and I can connect to OSMC Pi from Windows 7 command line with: ssh root@osmc

However when I set up the SSH server details in PyScripter like this:
image

And try to open a file on the OSMC Pi filesystem like this:
image

Instead I get this error:
image

If I add the scp option -T into the ssh server settings like this:
image

Then it does connect.

I can also simply drag and drop the file from a Windows Samba share into the PyScripter IDE and it opens it remotely without any error...
image

Why do I need to add the -T? According to the scp man page this option disables strict filename checking when copying files from a remote host to a local directory. But why would scp think there has been any change to the remote and local filename in this case? All characters in the remote filename and path are ascii and there are no spaces.

Are there any other scp or ssh options that I should be adding into the PyScripter ssh server settings dialog?

Cheers,

Flex

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions