SSH/SFTP/SCP For Matlab (v2)
Improved Matlab interface for SSH2/SFTP/SCP (supports public key) using the Ganymed-SSH2 javalib.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Editor's Note: This file was selected as MATLAB Central Pick of the Week
Cite As
David Freedman (2026). SSH/SFTP/SCP For Matlab (v2) (https://www.mathworks.com/matlabcentral/fileexchange/35409-ssh-sftp-scp-for-matlab-v2), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: SSH From Matlab (updated) + SFTP/SCP, SSH, SFTP/SCP from Matlab with Public Key Authentication
Inspired: okomarov/wrds
General Information
- Version 1.10.1 (772 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.10.1 | Updated Description removing the comments about non-custom ganymed library. |
||
| 1.10.1-0 | Per Mathworks requirements all .zip files have been removed. The default of using the custom ganymed-ssh2 library for SFTP-GET is now on. |
||
| 1.10.0 | Bug fix for SFTP-Put |
||
| 1.9.0 | Uploaded wrong file for r5 (didn't include SSH2 library) |
||
| 1.8.0 | Includes Ganymed-250 library as it can no longer be downloaded from http://www.cleondris.ch/ |
||
| 1.6.0 | - BugFix: Added filename separator check for SFTP-GET which would error when downloading a unix filename.
|
||
| 1.3.0 | Created a custom Ganymed SSH-2 Java library (now included in attachment) that is compatible with the way Matlab handles Java byte arrays. This is needed to support SFTP-GET functionality. Default behavior still uses official Ganymed library. |
||
| 1.2.0 | Made change to ssh2_config.m to account for Matlab's array size version dependence of the dynamic java classpath. |
||
| 1.1.0 | Bug fix that Jon Douglass identified. correct check for java library being loaded. |
||
| 1.0.0 |