Topic "Connection lost/filename with special characters"

Author Message
ports

Guest


Hi,

today I noticed a strange effect. My goal was to copy some files to a
remote solaris box. In this solaris environment we just have a chroot
with the ability to copy files via sftp/scp.
A few files used special german characters like (ae), (oe), (ue).
If I try to copy a file with a special character I get the following
error message:

Quote:
Copying files from remote side faild.
Cannot execute SCP to start transfer. Please make sure that SCP is installed on the server and path to it is included in PATH. You may also try SFTP instead of SCP.


If I'll try again to copy the file the next error message appears:

Quote:

Copying files from remote side failed.
Connection has been unexpectedly closed. Server send command exit status 1.


At next WinSCP drops the connection and I have to reconnect. Any ideas?

Regards :)
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Either post full log or try SFTP protocol, instead of SCP.
_________________
Martin Prikryl
ports

Guest


Hi,

sorry for the delay. Now here's a log from winscp. That's the part if I
try to copy the file for the first time.
Quote:

. Copying 1 files/directories to local directory "C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\"
. PrTime: Yes; PrRO: Yes; Rght: rw-r--r--; PrR: No; FnCs: N; RIC: Yes; Resume: S (102400); CalcS: Yes; Mask: *.*
. TM: M; ClAr: No; ExclM:
. AscM: *.*htm*; *.txt; *.php*; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
> echo "WinSCP: this is begin-of-file" ; scp -r -p -d -f "110_R_ZR04D082252_06122004_0803.txt" ; echo "WinSCP: this is end-of-file:$status"
< WinSCP: this is begin-of-file
. Sending NULL.
! invalid characters in scp command!
! here:R04D082252_06122004_0803.txt"
! try using a wildcard to match this file/directory
< WinSCP: this is end-of-file:-1
* (ECommand) Copying files from remote side failed.
* Cannot execute SCP to start transfer. Please make sure that SCP is installed on the server and path to it is included in PATH. You may also try SFTP instead of SCP.
*

And now the part where I try to copy the file for the second time.

Quote:

. Copying 1 files/directories to local directory "C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\"
. PrTime: Yes; PrRO: Yes; Rght: rw-r--r--; PrR: No; FnCs: N; RIC: Yes; Resume: S (102400); CalcS: Yes; Mask: *.*
. TM: M; ClAr: No; ExclM:
. AscM: *.*htm*; *.txt; *.php*; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
> echo "WinSCP: this is begin-of-file" ; scp -r -p -d -f "110_R_ZR04D082252_06122004_0803.txt" ; echo "WinSCP: this is end-of-file:$status"
. Server sent command exit status 1
. All channels closed. Disconnecting


The funny thing is that I don't have any problems if I'm going to copy
those files via pscp from my windows machine where winscp is running
and showing me that problem.
I really would appreciate any good idea to solve that problem ;)

regards
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
ports wrote:
The funny thing is that I don't have any problems if I'm going to copy
those files via pscp from my windows machine where winscp is running
and showing me that problem.

It may be caused by the fact the WinSCP must open shell on remote server while command-line clients does not. It probably changes processing of commands.

I would suggest you to try to specify /bin/bash shell on SCP tab of login dialog or use SFTP instead of SCP.
_________________
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