| Author |
Topic  |
|
|
rachel.gimpel
New Member

11 Posts |
Posted - Feb 27 2003 : 12:28:53 PM
|
| How do I transfer multiple files at once using sFTP on UNIX workstations? I am trying to retrieve data sets from Bristol, and the sFTP tool on our Solaris workstations does not appear to have an "mget" command. I don't know if I need a different command/method or a different sFTP tool or what. |
Rachel A Gimpel Autism Research Program UNC Chapel Hill
|
|
|
ken.roberts
Junior Member
 
26 Posts |
Posted - Feb 27 2003 : 12:54:55 PM
|
Hi.
There is a command called "scp" which stands for secure copy, and is usually included with installations of SSH. Using this with the -r option will let you recursively copy entire directories. One way to use it would be:
scp -r rachel@bristol.biac.duke.edu:[path to data here]
Ken
|
Woldorff Lab Center for Cognitive Neuroscience (919) 668-1334 |
 |
|
|
rachel.gimpel
New Member

11 Posts |
Posted - Feb 27 2003 : 1:52:00 PM
|
I tried the scp -r command as suggested. After being asked to enter my password, I received an error saying: "Received disconnect: 2: Window overflow received channel data"
Do you know what this means and what I am doing incorrectly?
Thank you. Rachel |
Rachel A Gimpel Autism Research Program UNC Chapel Hill
|
 |
|
|
ken.roberts
Junior Member
 
26 Posts |
Posted - Feb 27 2003 : 3:01:25 PM
|
Hi.
I gave it a try a couple of times, and I got the same errors as you do. The commands do work transferring files between computers on our network (within the CCN), but just not with bristol. Running with the debug flag (-v), I got the following:
debug1: Entering interactive session.
debug1: ssh_session2_setup: id 0
debug1: Sending command: scp -v -f ccnfratt.01data20021112_41616_001_00.bxh
debug1: channel request 0: exec
debug1: channel 0: open confirm rwindow 100000 rmax 32768
debug1: Remote: Failed to launch child process!
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
Received disconnect from 152.3.98.68: 2: Window overflow received channel data.
Reading this, it seems like the failure occurred on the remote side during the execution of the scp command after the SSH session was initialized. Perhaps either the path isnt being specified correctly, or bristol is not set up to accept scp commands. Maybe someone else would have more insight on this. Anyway, in regard to the first question, I tried logging in with sftp and using mget. It works on our Solaris machine. Mget isnt listed in the documentation anywhere, but still works. Give it a try, and if it doesnt work on your machine, try upgrading your SSH utilities.
Ken |
Woldorff Lab Center for Cognitive Neuroscience (919) 668-1334 |
 |
|
|
rachel.gimpel
New Member

11 Posts |
Posted - Feb 27 2003 : 3:14:53 PM
|
I have tried mget with sftp on our Solaris machines and it does not work. I will ask our system administrator about upgrading SSH utilities.
If anyone else has input regarding Bristol and scp, or other methods for securely transferring data sets, please let me know.
Thank you. Rachel |
Rachel A Gimpel Autism Research Program UNC Chapel Hill
|
 |
|
|
francis.favorini
Forum Admin
    
USA
618 Posts |
Posted - Mar 11 2003 : 7:14:43 PM
|
scp won't work on Bristol, because Bristol does not allow SSH shell connections. It only allows SFTP.
However, I found an FTP/SFTP client which might work for you. gFTP is a free multithreaded ftp client for *NIX based machines running X11R6 or later. Check out the gFTP home page (http://gftp.seul.org/) for more info. They also have a command line version which allows you to transfer a whole directory at a time.
Let us know if you have success.
-Francis
|
IT Director, Brain Imaging and Analysis Center |
 |
|
|
charles.michelich
BIAC Alum
   
USA
183 Posts |
Posted - Mar 12 2003 : 3:48:27 PM
|
I installed and tried using gftp on my Redhat Linux 8.0 workstation. I used the GUI version to successfully transfer both individual files and entire directories using sftp.
In order to use sftp with Bristol, you need to enable the "Use SSH2 SFTP subsys" under FTP->Options->SSH.
One odd behavior I noticed was that I could not see a listing of the directories available until I was in my experiment directory. Therefore, you need to type the path to your experiment "by hand". i.e. \BIAC\BIAC\Study.01 i.e. \BIAC\Radiology\Study.02
The command line version does not currently work with the "Use SSH2 SFTP subsys" option.
Chuck
|
Edited by - charles.michelich on Mar 12 2003 5:19:42 PM |
 |
|
|
charles.michelich
BIAC Alum
   
USA
183 Posts |
|
| |
Topic  |
|