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

Author Message
jpm

Guest


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
Advertisements
jpm

Guest


I mean "Can't copy file TO a remote server", not FROM.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
You have probably turned on "Use scp2 with scp1 compatibility." option of Shell tab of login dialog.
_________________
Martin Prikryl
jpm

Guest


prikryl 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.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License