Skip to content

cannot scp_upload from Windows to Windows #52

@certara-mtomashevskiy

Description

@certara-mtomashevskiy

hi
I can start connection with another Windows host and execute there the commands with ssh_exec_internal as usual
but scp_upload does not seem to be working:
> ssh::scp_upload(.Object@session, "D:/temp/Args.txt", "c:\\Users\\User")
Error: SCP failure: SCP: Warning: status code 1 received: scp: 'c:/Users/User': No such file or directory

Looks like it transforms the paths from Windows style to Unix style, but it does not work
To be sure that the connection is working I tried
> ssh::scp_upload(.Object@session, "D:/temp/Args.txt", "1")
[100%] D:\temp\shu\prn824\model_pk\jobArgsCombined.txt
[1] "1"

in such case file args.txt is copied on the host, but has a strange name '1' (with ticks), same for other names I tried.
Are there any workarounds I missed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions