Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using sftp to download to client

Posted on 2006-07-06
6
Medium Priority
?
757 Views
Last Modified: 2008-03-10
I have a Slackware 9.1 Linux box running an sshd server.
The Slack box is accessible by WinXP cleints uisng PuTTY.
The sftp server on the Slack box is also functional and accessible by the following:

llg@primary:~$ sftp -oPort=44444 llg@localhost
Connecting to localhost...
llg@localhost's password:
sftp>

success, i'm in.

Now I want to download some .iso files on the Slack Box so I do:

sftp> get /archive/backup/iso-filesiso

Groovy, it's downloading, but where to?
I find that the files have simply been copied to the / <<root>> folder.

This is not what I want.
I want to download the .iso file to a client machine from which I am accessing the sftp server on the Slack Box.

What am I missing.
Thanks for your help and patience.  :-)

Frybread
0
Comment
Question by:Frybread
  • 3
  • 3
6 Comments
 

Author Comment

by:Frybread
ID: 17054007
I have also looked at the man-page to understand the exact syntax of grabbing files from the sftp server and gettting them to the client ---

 get [flags] remote-path [local-path]
             Retrieve the remote-path and store it on the local machine.  If
             the local path name is not specified, it is given the same name
             it has on the remote machine. If the -P flag is specified, then
             the file's full permission and access time are copied too.


And I have tried several different iterations, but nothing has worked ---

sftp> get /archive/2006_Jul_06/*.iso /Software_Dump
Multiple files match, but "/Software_Dump" is not a directory
sftp> get /archive/2006_Jul_06 \Software_Dump\
Fetching /archive/2006_Jul_06 to \Software_Dump\
Cannot download a directory: /archive/2006_Jul_06
sftp> get /archive/2006_Jul_06/*.iso \Software_Dump\
Multiple files match, but "\Software_Dump\" is not a directory
sftp> get /archive/2006_Jul_06/*.iso C:\Software_Dump\
Multiple files match, but "C:\Software_Dump\" is not a directory
sftp>

"Software_Dump" being a local directory on the client computer that I want to download the .iso file to.



0
 
LVL 13

Accepted Solution

by:
prashsax earned 1000 total points
ID: 17054073
Have you tried WINSCP. Its a free sftp client for windows.

Install it on the client machine and then connect to the sftp server and download the iso on your winxp client machines.

Link:
http://winscp.net/
0
 

Author Comment

by:Frybread
ID: 17054361
Thanks for the help, Mr. Prashsax.
This is a great app. for Windows clients.
It's up and working in minutes.

Okay, now that I've found this app. for windows clients, I'll have to post another question to make it work for linux clients.  :-)

Frybread
0
Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

 
LVL 13

Expert Comment

by:prashsax
ID: 17054378
ThankQ.
0
 

Author Comment

by:Frybread
ID: 17054840
Whoa, linux shell sftp performance whips WinSCP sftp performance.

Using WinSCP, I logged into the SlackBox 9.1 ssh server and copied 3 600 Meg. .iso files to the windows client.
Average speed of file transfer was 1.85 MB/s.

I then went to a linux client box on the same subnet as the windows client mentioned above.
I logged into the SlackBox 9.1 ssh server ---  ~$sftp -oPort=44444 llg@192.199.199.5

And then did --

sftp>get /archive/2006_Jul_06/*.iso /home/llg

Average speed of file transfer was a smokin' 8.1 MB/s.

Both tests were completed after business hours, so little to none network traffic.
The windows client box has:
Socket 939 AMD 2.0 Ghz Athlon64
1 Gig. fast Corsair DDR400 RAM
SATA 150 HD

The linux client box has:
Socket A AMD 1.8 Ghz AthlonXP 2500
512 Megs. DDR333 PQI RAM
ATA100 HD

The WinSCP app. must make alot of overhead in doing the transfers; that's the only thing I can think of.

What do you think, Prashax?

Frybread
0
 
LVL 13

Expert Comment

by:prashsax
ID: 17059017
Yes, WINSCP is not as fast as linux client.

But its free. There are many fast sftp client for windows, but they cost a lot.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What monsters are hiding in your child's room? In this article I will share with you a tech horror story that could happen to anyone, along with some tips on how you can prevent it from happening to you.
It’s time for spooky stories and consuming way too much sugar, including the many treats we’ve whipped for you in the world of tech. Check it out!
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question