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

xcloudriderx

Get file from remote directory

Hi,

I have a script as follows:
open sftp://User:Password@IPAddress -hostkey="ssh-ed25519 255 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
 
get -resume /root/test.json C:\Users\admin\Documents\folder\
 
close

exit
I am unable to get the file transferred over to local directory. I am wondering if it is due to how /root/ directory is to be specified.
I am able to connect and get the file over manually using the WinSCP application.

Help is appreciated. Thanks.