How to upload files from MATLAB to sftp?

3 views (last 30 days)
Zaid Zamel
Zaid Zamel on 24 Jan 2016
Commented: Walter Roberson on 26 Jan 2016
I knew that MATLAB does not contains in built function for sftp, but I found many function written to does this job at the File Exchange in Matlab Central, I have tried to use any of them but i felt. Can any one please recommand any working file for me and just give me the command to use it, for example I have tried to use this one:
In this way:
sftpfrommatlab('username','191.31.436.28','password','C:/Users/xyz/fileToUpload.png','191.31.436.28/images/');
but it gives me errors and not sure weather my command is wrong or not.
  4 Comments
Zaid Zamel
Zaid Zamel on 25 Jan 2016
ch.ethz.ssh2.SFTPException: No such file (SSH_FX_NO_SUCH_FILE: A reference was made to a file which does not exist.)
I got this error even after done the installation
Walter Roberson
Walter Roberson on 26 Jan 2016
For that routine, last parameter needs to be the fully qualified path of the destination file, complete with directories. I would speculate that if the destination is not fully qualified then it might be taken relative to the home directory of the remote user.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!