Solved

Using sftp to download to client

Posted on 2006-07-06
6
750 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 250 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
Now Available: Firebox Cloud for AWS and FireboxV

Firebox Cloud brings the protection of WatchGuard’s leading Firebox UTM appliances to public cloud environments. It enables organizations to extend their security perimeter to protect business-critical assets in Amazon Web Services (AWS).

 
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

730 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