ropensci / ssh

Native SSH client in R based on libssh
https://docs.ropensci.org/ssh
Other
127 stars 21 forks source link

cannot scp_upload from Windows to Windows #52

Open certara-mtomashevskiy opened 3 years ago

certara-mtomashevskiy commented 3 years ago

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?

anthonycastellano commented 1 year ago

I've been running into the same issue from Windows to Windows and RHEL to Windows. Did you end up finding a workaround?

Edit: Also tested on Linux