This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: scp just spews usage


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]