Community discussions

MikroTik App
 
rechandler
just joined
Topic Author
Posts: 18
Joined: Mon May 28, 2018 12:47 pm
Location: Poland

Cannot upload file via SFTP

Sat May 22, 2021 10:06 am

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.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Cannot upload file via SFTP

Sat May 22, 2021 10:21 am

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"
Last edited by rextended on Sat May 22, 2021 10:40 am, edited 3 times in total.
 
rechandler
just joined
Topic Author
Posts: 18
Joined: Mon May 28, 2018 12:47 pm
Location: Poland

Re: Cannot upload file via SFTP

Sat May 22, 2021 10:36 am

According to this post: viewtopic.php?t=106958#p811364 it is a valid command.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Cannot upload file via SFTP

Sat May 22, 2021 10:38 am

>>>Fixed in v6.47.4.<<<

Sorry, I try in 6.46.8

Who is online

Users browsing this forum: No registered users and 65 guests