Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Using sftp to download to client

Posted on 2006-07-06
6
Medium Priority
?
755 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 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
How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

 
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

2017 Webroot Threat Report

MSPs: Get the facts you need to protect your clients.
The 2017 Webroot Threat Report provides a uniquely insightful global view into the analysis and discoveries made by the Webroot® Threat Intelligence Platform to provide insights on key trends and risks as seen by our users.

Question has a verified solution.

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

A bad practice commonly found during an account life cycle is to set its password to an initial, insecure password. The Password Reset Tool was developed to make the password reset process easier and more secure.
IF you are either unfamiliar with rootkits, or want to know more about them, read on ....
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

705 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