Solved

Using sftp to download to client

Posted on 2006-07-06
6
744 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 13

Expert Comment

by:prashsax
Comment Utility
ThankQ.
0
 

Author Comment

by:Frybread
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Phishing is at the top of most security top 10 efforts you should be pursuing in 2016 and beyond. If you don't have phishing incorporated into your Security Awareness Program yet, now is the time. Phishers, and the scams they use, are only going to …
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now