Community discussions

MikroTik App
 
SistemiTopgraf
just joined
Topic Author
Posts: 1
Joined: Tue Feb 14, 2023 10:44 am

Upload via SFTP fail to create new file

Tue Feb 14, 2023 11:22 am

Hi,
i'm trying to create a script that upload a file to the router RB750 version 6.7 via a script in powershell using the sftp session but this give the error that the file or folder do not exist if a file with the same name is not already on the router. If a file with the same name is already on the router the upload succeed and overwrite the file. if u upload manually with WinSCP and SFTP connection it works, but when using the Posh-ssh module of powershell it will fail.
is there any advice or consideration that i have to do before this upload?

Who is online

Users browsing this forum: CGGXANNX, iustin, jamesperks, sgiglio, tjr and 99 guests