Rank: 966 based on 144 downloads (last 30 days) and 2 files submitted
photo

David Freedman

E-mail
Company/University
Boston University

Personal Profile:

 

Watch this Author's files

 

Files Posted by David Freedman View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
01 Aug 2014 Screenshot SSH/SFTP/SCP For Matlab (v2) Improved Matlab interface for SSH2/SFTP/SCP (supports public key) using the Ganymed-SSH2 javalib. Author: David Freedman ssh, ssh2, ganymed, sftp, scp, network 84 30
  • 5.0
5.0 | 14 ratings
20 Aug 2013 SSH From Matlab (updated) + SFTP/SCP Run commands on a remote machine from a Matlab session, via a secure shell. Author: David Freedman communications, data export, import, ssh, sftp, thank you very much f... 60 78
  • 4.66667
4.7 | 15 ratings
Comments and Ratings by David Freedman View all
Updated File Comments Rating
15 Oct 2014 SSH/SFTP/SCP For Matlab (v2) Improved Matlab interface for SSH2/SFTP/SCP (supports public key) using the Ganymed-SSH2 javalib. Author: David Freedman

Hi Saugat, I don't respond to comments for technical help, for support you should contact me directly.

02 Jun 2014 SSH/SFTP/SCP For Matlab (v2) Improved Matlab interface for SSH2/SFTP/SCP (supports public key) using the Ganymed-SSH2 javalib. Author: David Freedman

Hatsue was able to figure out things working by doing this:
With administrator help, Enable password authentication. E.g., in case of OpenSSH on Fedora, edit /etc/sshd/sshd_config and change the value of "PasswordAuthentication" to "yes", then send a HUP signal to the daemon so that it re-reads its configuration.

13 Feb 2014 SSH/SFTP/SCP For Matlab (v2) Improved Matlab interface for SSH2/SFTP/SCP (supports public key) using the Ganymed-SSH2 javalib. Author: David Freedman

Hi Enno,

Unfortunately, support for preserving date & time stamps is not part of the Ganymed SSH2 library that's used for SCP. The only alternative that I see would be to capture the date and time by SSH in first and then changing that on the downloaded files after the fact.

10 Feb 2014 SSH/SFTP/SCP For Matlab (v2) Improved Matlab interface for SSH2/SFTP/SCP (supports public key) using the Ganymed-SSH2 javalib. Author: David Freedman

Hi Chris, my pleasure.

Unfortunately, there's no direct support for using the wildcard "*" when using scp or sftp. I suggest using ssh to collect a list of files using the wildcard and then downloading the parsed list with scp or sftp.

26 Sep 2013 Disk usage Queries free and total space of a volume Author: Igor

Comments and Ratings on David Freedman's Files View all
Updated File Comment by Comments Rating
01 Nov 2014 SSH/SFTP/SCP For Matlab (v2) Improved Matlab interface for SSH2/SFTP/SCP (supports public key) using the Ganymed-SSH2 javalib. Author: David Freedman Oleg Komarov

Also, Ganymed .jars are available on Maven: http://mvnrepository.com/artifact/ch.ethz.ganymed/ganymed-ssh2/

01 Nov 2014 SSH/SFTP/SCP For Matlab (v2) Improved Matlab interface for SSH2/SFTP/SCP (supports public key) using the Ganymed-SSH2 javalib. Author: David Freedman Oleg Komarov

Can you migrate the submission to github so that I could fork it and include in my "Matlab API for WRDS" project?

15 Oct 2014 SSH/SFTP/SCP For Matlab (v2) Improved Matlab interface for SSH2/SFTP/SCP (supports public key) using the Ganymed-SSH2 javalib. Author: David Freedman David Freedman

Hi Saugat, I don't respond to comments for technical help, for support you should contact me directly.

15 Oct 2014 SSH/SFTP/SCP For Matlab (v2) Improved Matlab interface for SSH2/SFTP/SCP (supports public key) using the Ganymed-SSH2 javalib. Author: David Freedman Saugat

Hello David,

I am getting the following error:

Error using ssh2_main (line 86)
Error: SSH2 could not connect to the ssh2 host - "localhost:8022"!

Error in ssh2 (line 84)
ssh2_struct = ssh2_main(ssh2_struct);

Error in scp (line 19)
ssh2_struct = ssh2(ssh2_struct);

Error in scp_put (line 57)
ssh2_struct = scp(ssh2_struct);

Error in scp_simple_put (line 55)
ssh2_struct = scp_put(ssh2_struct, localFilename, remotePath, localPath, remoteFilename);

08 Jul 2014 SSH/SFTP/SCP For Matlab (v2) Improved Matlab interface for SSH2/SFTP/SCP (supports public key) using the Ganymed-SSH2 javalib. Author: David Freedman Peat

David's submission provided SSH functionality I desperately needed to solve some problems. It was a lifesaver.

I ran into problems connecting my Windows client to the server running on a Mac. I eventually solved the problems by using the public private key mechanism for authentication. I also had to generate the key pair on the Mac and bring the private key across to the Windows machine to get everything to work.

Contact us