Solved

Using sftp to download to client

Posted on 2006-07-06
6
747 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 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL won't work after disabling SSL3 / TLS1 3 57
Unauthorized Network Devices Appearing on Home Network 20 137
php extract($_REQUEST) 5 88
Event 4625 - Account Name: _ 3 46
One of the biggest threats facing all high-value targets are APT's.  These threats include sophisticated tactics that "often starts with mapping human organization and collecting intelligence on employees, who are nowadays a weaker link than network…
There's a lot of hype surrounding blockchain technology. Here's how it works and some of the novel ways it' s now being used - including for data protection.
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…
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 …

809 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