SSH From Matlab (updated) + SFTP/SCP
by David Freedman
23 Jun 2010
(Updated 02 Jun 2011)
Run commands on a remote machine from a Matlab session, via a secure shell.
|
Watch this File
|
| File Information |
| Description |
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. |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
SSH From Matlab, SCP/SFTP from Matlab
This submission has inspired the following:
SSH, SFTP/SCP from Matlab with Public Key Authentication, SSH/SFTP/SCP For Matlab (v2)
|
| MATLAB release |
MATLAB 7.9 (2009b)
|
| Other requirements |
Ganymed SSH-2 for Java library
http://www.cleondris.ch/opensource/ssh2/ |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 29 Jun 2010 |
Added SFTP function. Also removed extraneous files. |
| 17 Jul 2010 |
Added SCP functionality |
| 01 Jun 2011 |
Now supports public key authentication. Also one can send commands without waiting for a response. Plus, an updated sshfrommatlabinstall. |
| 02 Jun 2011 |
File updated. |
|
Contact us at files@mathworks.com