Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

jpm

Re: Can't copy files to a remote server [scp: illegal option]

martin wrote:

You have probably turned on "Use scp2 with scp1 compatibility." option of Shell tab of login dialog.


No. I don't. The turned on options of Shell tab are "Lookup user groups", "Clear aliases", "Ignore LS warnings", and "Clear national variables". That's it.
martin

Re: Can't copy files from a remote server [scp: illegal option]

You have probably turned on "Use scp2 with scp1 compatibility." option of Shell tab of login dialog.
jpm

Re: Can't copy files from a remote server [scp: illegal option]

I mean "Can't copy file TO a remote server", not FROM.
jpm

Can't copy files from a remote server [scp: illegal option]

I can login and view the file list, but can't upload files. My remote server does not seem to accept some of the options for scp set by WinSCP. How to solve this problem ? Thanks in advance !

Here is the error message.

> echo "WinSCP: this is begin-of-file" ; scp -r -1 -d -t "/home/myself/myfile" ; echo "WinSCP: this is end-of-file:$?"
! scp: illegal option -- 1
< WinSCP: this is begin-of-file
! usage: scp [-pqrvBC46] [-F config] [-S program] [-P port]
! [-c cipher] [-i identity] [-o option]
! [[user@]host1:]file1 [...] [[user@]host2:]file2
< inSCP: this is end-of-file:1