Rank: 786 based on 99 downloads (last 30 days) and 2 files submitted
photo

David Freedman

E-mail
Company/University
Boston University

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by David View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
03 Jan 2013 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 43 10
  • 5.0
5.0 | 4 ratings
02 Jun 2011 SSH From Matlab (updated) + SFTP/SCP Run commands on a remote machine from a Matlab session, via a secure shell. Author: David Freedman scp, ssh, import, data export, sftp, thank you very much f... 56 75
  • 4.61538
4.6 | 13 ratings
Comments and Ratings by David View all
Updated File Comments Rating
13 Jun 2013 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 Mit Dir, I would suggest sending the command with a forking modifier modifier, i.e. &, after the command. Hopefully, you don't need to wait for the command to finish, but if you do, hopefully you can check for a file to be written. Alternatively, you can hack something together like I did, where I run a script on the server that outputs a file when it's done. I have a loop that checks for that file, but in the meantime, you can run other things (local or remote).

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

Hi Nicholas,

If you can NFS mount the remote computer, that would probably be ideal.

Otherwise, you can continue to use this function, just download the files to your computer to use matlab functions to do your analysis.

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

Hi Matt,

Unfortunately, I'm not familiar with byobu. This link implies you need to run byobu with the "-t" option as the ssh2 package does not provide a tty terminal.

http://stackoverflow.com/questions/474967/automatically-or-more-easily-reconnect-to-a-screen-session-after-network-inter

Does this solve your problem?

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

Hi Walter, If I understand the problem, you want to look at the result of your commands. I'll remind you that these functions cannot support interactive modes on the command line. But, for getting the response of your command, you can look at the cell array "result" from the command

[channel, result] = sshfrommatlabissue(channel,command).

Thanks.

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

Hi Roel,

It is difficult, but I don't think impossible to connect through two machines.

If you're able to run Matlab on the first machine, you should be able to use this package to ssh into the second machine.

Otherwise, you can use public key authentication on the first machine and a script to automatically connect and execute your function.

This hacks are needed because the SSH package for matlab can only execute commands and cannot run interactively.

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

Hi Mit Dir, I would suggest sending the command with a forking modifier modifier, i.e. &, after the command. Hopefully, you don't need to wait for the command to finish, but if you do, hopefully you can check for a file to be written. Alternatively, you can hack something together like I did, where I run a script on the server that outputs a file when it's done. I have a loop that checks for that file, but in the meantime, you can run other things (local or remote).

13 Jun 2013 SSH/SFTP/SCP For Matlab (v2) Improved Matlab interface for SSH2/SFTP/SCP (supports public key) using the Ganymed-SSH2 javalib. Author: David Freedman Dir, Mit

Hi David, thanks for a great package. I am playing with the functionality for your programm and have therefore one question.
When I send a command to an external server to start a modell calculation, matlab is suppressed into a "busy" modus and waits for the answer of the server. Is there any option avpoid this issue? Many thanks in advance.

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

Hi Nicholas,

If you can NFS mount the remote computer, that would probably be ideal.

Otherwise, you can continue to use this function, just download the files to your computer to use matlab functions to do your analysis.

08 May 2013 SSH From Matlab (updated) + SFTP/SCP Run commands on a remote machine from a Matlab session, via a secure shell. Author: David Freedman Nicholas

Hi, I'm enjoying playing around with this function but I can't get it to do what I want. I was wondering if maybe I should be using an alternative. I've developed a series of scripts to analyse some model outputs and the way the script works is by looking at which directory is the newest and then taking information from the filenames to determine automatically quite a lot of information about the runs I've done. However, I'm now doing some runs on a computer other than my own that I only have remote access to, and, which, doesn't have matlab.

So, is there anyway I can get matlab to see the directories on the remote machine as if it was a local directory so that I can use functions such as dir, textscan and cell2mat to extract the model information from the remote directories?

Any assistance would be greatly appreciated.

Nick

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

Very nice package. I was looking for this las couple of years. Now I am able to copy the data files from remote servers and analyze then automatically into matlab. Very nice!!!! Thanks a lot.

Top Tags Applied by David
communications, scp, sftp, ssh, data export
Files Tagged by David View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
03 Jan 2013 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 43 10
  • 5.0
5.0 | 4 ratings
02 Jun 2011 SSH From Matlab (updated) + SFTP/SCP Run commands on a remote machine from a Matlab session, via a secure shell. Author: David Freedman scp, ssh, import, data export, sftp, thank you very much f... 56 75
  • 4.61538
4.6 | 13 ratings

Contact us