Get file from remote directory

Advertisement

xcloudriderx
Joined:
Posts:
2
Location:
Singapore

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.

Reply with quote E-mail

Advertisement

Advertisement

You can post new topics in this forum