首页 > 解决方案 > Matlab authenticate FTP with private key file

问题描述

We can use Matlab's built in ftp function to authenticate to the FTP server as follows:

HOST = 'a.b.c.d';
USER = 'hello';
PASS = 'world';

conn = ftp(HOST, USER, PASS);

However, I have now a FTP server where the authentication goes through a private key file (generated by PuTTY). How can I use this in this context to Authenticate? Using FileZilla you can select the Logon Type "Key File" (I tested and this worked).

标签: matlabsslftp

解决方案


经过一番研究,我发现了一个文件交换包,它允许您使用私钥对 SFTP 进行身份验证。

请参阅安全 FTP (SSH/SFTP/SCP)

但是,如果存在其他解决方案(例如,Matlab),我愿意听取他们的意见。


推荐阅读