Page 1 of 1

Cannot upload file via SFTP

Posted: Sat May 22, 2021 10:06 am
by rechandler
Hi!
I'm trying to upload file via SFTP. While using WinSCP everything works great. I've used this command:
/tool fetch url="sftp://nas/MikroTik-20210522-0903.backup" src-path="flash/MikroTik-20210522-0903.backup" user="xyz" password="xyz" dst-path="MikroTik-20210522-0903.backup" upload=yes
And I've got error:
no such item (4) action timed out - try again, if error continues contact support and send a supout file (13)
Have you got any idea what can I do? With FTP everything just works.

As a server I'm using Synology NAS.

Re: Cannot upload file via SFTP

Posted: Sat May 22, 2021 10:21 am
by rextended
You have distorced the way of command must be used.
/tool fetch mode=ftp address=is.mysite.net port=21 user=mikrotik password=pazzword upload=yes ascii=no src-path="/flash/localfile.ext" dst-path="/remotedir/remotefile.ext"

Re: Cannot upload file via SFTP

Posted: Sat May 22, 2021 10:36 am
by rechandler
According to this post: viewtopic.php?t=106958#p811364 it is a valid command.

Re: Cannot upload file via SFTP

Posted: Sat May 22, 2021 10:38 am
by rextended
>>>Fixed in v6.47.4.<<<

Sorry, I try in 6.46.8