Topic "scp -1 invalid argument"

Author Message
Guest




On my host system I am running openssh 3.5p1
When I try to transfer files I gedt the following error:
. Copying 1 files/directories to local directory "C:\Documents and Settings\User\My Documents\"
. PrTime: Yes; PrRO: Yes; Rght: rw-r--r--; PrR: Yes
. FnCs: N; TM: M; AscM: *.*htm*; *.txt; *.php*; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex
> echo "WinSCP: this is begin-of-file" ; scp -r -p -1 -d -f "axinstall" ; echo "WinSCP: this is end-of-file:$status"
! scp: illegal option -- 1
! usage: scp [-pqrvBC46] [-F config] [-S program] [-P port]
! [-c cipher] [-i identity] [-o option]
! [[user@]host1:]file1 [...] [[user@]host2:]file2
< WinSCP: this is begin-of-file

How can I turn off the -1 option in winscp2?
Advertisements
Guest




For the above problem that I reported (-1 option prob) I am running openssh on a Sun Solaris 8 system.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Turn off "Use scp2 with scp1 compatibility" option on "Shell" tab of login dialog.
_________________
Martin Prikryl
radha

Guest


When I try to transfer files I get the following error:
Usage: scp [-pqrvBC46] [-F config] [-S program] [-P port]
[-c cipher] [-i identity] [-o option]
[[user@]host1:]file1 [...] [[user@]host2:]file2

Can some one please help on this?
...
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
_________________
Martin Prikryl
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