X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.5 required=5.0	tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4CED2222.20800@gmx.de>
Date: Wed, 24 Nov 2010 15:33:06 +0100
From: Matthias Andree <matthias.andree@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: scp just spews usage
References: <AANLkTim7ehatf+MMv+72znffiY1-DGPb-81qegDYUWQ6@mail.gmail.com>
In-Reply-To: <AANLkTim7ehatf+MMv+72znffiY1-DGPb-81qegDYUWQ6@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Am 24.11.2010 15:26, schrieb Benjamin Anderson:
> Hi,
> I've been using ssh with cygwin for years w/ no issues.  After my last
> upgrade, I am not able to use scp (ssh still works).
> 
> $ scp myfile myusername@myserver:~
> usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
>            [-l limit] [-o ssh_option] [-P port] [-S program]
>            [[user@]host1:]file1 ... [[user@]host2:]file2
> 
> This same command has worked for me for long time.  Any ideas what's
> happening now?  (I have tried rebooting since the upgrade).

Does it work without trailing tilde (~)?  SCP/SSH will put you into the home
directory by default anyways, so it's not strictly required.

Are there blanks in any of the names? Then remember to quote the command
properly from the shell.

Is scp an alias?  Find out with "type alias" when using bash.

-- 
Matthias Andree

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

