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

Advertisement

jpm
Guest

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

Reply with quote

Advertisement

jpm
Guest

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

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

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.

Reply with quote

jpm
Guest

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.

Reply with quote

Advertisement

You can post new topics in this forum