LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-16-2007, 09:37 AM   #1
jaysin_aus
LQ Newbie
 
Registered: Jun 2006
Posts: 15

Rep: Reputation: 0
Scp to Windows server


Hi all,

I want to setup a scp to a Windows machine and be able to get all files in the folder it ftp's to.

I can successfully get the connection to the box with scp.
I can get a file if i put in the name of the file fine.
I want to be able to get all files in that directory.

I try to put in values like *.* and * and doesn't work.
Even if I put in *.exe, still won't find the file.
I have also tried the -r option but that doesn't work either.

The command I am using is:
scp -P 223 username@serverip:*.* ./test2/

Does anybody know what needs to be set to be able to do this?

Any help is greatly appreciated.

Jason
 
Old 08-16-2007, 10:51 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hi.

The problem is that your local shell is expanding the '*', not the remote shell.

Try:
Code:
scp -P 223 username@serverip:'*.*' ./test2/
Dave
 
Old 08-16-2007, 11:05 AM   #3
jaysin_aus
LQ Newbie
 
Registered: Jun 2006
Posts: 15

Original Poster
Rep: Reputation: 0
The response I get back is scp: Failed to open file *.*.
 
Old 08-16-2007, 04:19 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Welcome to the wonderful world of Windows.

You might have better luck running sshd through cygwin on the Windows side, as it provides a proper shell that understands globs.

Dave
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SCP: Copy file from remote linux server onto a windows machine? Tony Empire Linux - Newbie 21 09-22-2015 10:18 PM
use of scp from server to laptop BroX Linux - Networking 8 01-13-2005 06:40 AM
SCP Copy from Linux to Windows? mhague Linux - Newbie 8 11-03-2004 01:56 PM
ssh/scp via a windows proxy server saleemlqorg Linux - Networking 2 01-09-2004 05:57 PM
scp copying from Linux to windows richard3403 Linux - Networking 2 11-06-2003 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration