Rank: 28824 based on 0 downloads (last 30 days) and 0 file submitted



Personal Profile:


Watch this Author's files


Comments and Ratings by Erika View all
Updated File Comments Rating
22 Sep 2011 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford

20 Dec 2010 SSH From Matlab (updated) + SFTP/SCP Run commands on a remote machine from a Matlab session, via a secure shell. Author: David Freedman

Jonathan, to use sshfrommatlab.m with a private/public key you can try this one:

remove/comment the following lines:
% isAuthenticated = channel.authenticateWithPassword(userName,password);
% if(~isAuthenticated)
% error...
% (['Error: SSHFROMMATLAB could not authenticate the',...
% ' SSH connection...']);
% end

and write instead:

id_dsa = sprintf('<your_dsa_or_rsa_key>')
isAuthenticated = channel.authenticateWithDSA(userName,id_dsa, password)

For me it works.

Contact us