SSH From Matlab (updated) + SFTP/SCP

版本 (600.4 KB) 作者: David Freedman
Run commands on a remote machine from a Matlab session, via a secure shell.
8.2K 次下载
更新时间 2013/8/20


If you need to access a remote machine from your Matlab session (for near-real time data transfer etc...) this set of functions allows you to programmatically send a single command and obtain the return values as a cell array.

Added SFTP function that is compatible with this library. Changed to use Matlab's binary read operations. Tested and achieved over 1.2MB sustained transfer rate.

SCP functionality has been included to transfer files back locally.

Now supports public key authentication.

This requires the open-source Ganymed SSH-2 for Java that is freely available online and is now included in the zip file.


David Freedman (2024). SSH From Matlab (updated) + SFTP/SCP (, MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009b
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明

Includes Ganymed library (no longer accessible from (

File updated.

Now supports public key authentication. Also one can send commands without waiting for a response. Plus, an updated sshfrommatlabinstall.

Added SCP functionality

Added SFTP function. Also removed extraneous files.