Is is possible to disable the PWD command which is sent when a session start ?
Hello,
I am trying to open (in batch mode, ie using a little script) a ftp connection with a FTP server which is a bit "special" : indeed some commands are not available on this server (such as DIR, PWD, etc.).
It seems that during the startup conversation with the host, winscp automatically sends the command PWD, which triggers an error from the ftp server so the connection is closed:
...
. 2015-06-24 17:59:39.936 --------------------------------------------------------------------------
. 2015-06-24 17:59:39.936 Connecting to vakayl.lu ...
. 2015-06-24 17:59:39.951 Connected with vakayl.lu. Waiting for welcome message...
< 2015-06-24 17:59:39.951 220 Welcome to EAS File Service!
> 2015-06-24 17:59:39.951 USER abc
< 2015-06-24 17:59:39.951 331 User name is OK. Password needed for:abc
> 2015-06-24 17:59:39.951 PASS ***
< 2015-06-24 17:59:40.061 230 User logged in
> 2015-06-24 17:59:40.061 SYST
< 2015-06-24 17:59:42.057 502 Command not implemented
> 2015-06-24 17:59:42.057 FEAT
< 2015-06-24 17:59:42.057 211- Extensions supported:
< 2015-06-24 17:59:42.057 AUTH TLS
< 2015-06-24 17:59:42.057 PBSZ
< 2015-06-24 17:59:42.057 PROT
< 2015-06-24 17:59:42.057 CCC
< 2015-06-24 17:59:42.057 211 END
. 2015-06-24 17:59:42.057 Connected
. 2015-06-24 17:59:42.057 --------------------------------------------------------------------------
. 2015-06-24 17:59:42.057 Using FTP protocol.
. 2015-06-24 17:59:42.073 Doing startup conversation with host.
> 2015-06-24 17:59:42.073 PWD
< 2015-06-24 17:59:44.070 502 Command not implemented
. 2015-06-24 17:59:44.070 Getting current directory name.
> 2015-06-24 17:59:44.070 PWD
< 2015-06-24 17:59:46.082 502 Command not implemented
* 2015-06-24 17:59:46.082 (ECommand) Error getting name of current remote directory.
* 2015-06-24 17:59:46.082 Command not implemented
. 2015-06-24 17:59:46.082 Attempt to close connection due to fatal exception:
* 2015-06-24 17:59:46.082 (ExtException) **Command not implemented**
. 2015-06-24 17:59:46.082 Disconnected from server
=> is it possible to turn off the automatic sending of the command PWD ?
Many thanks
I am trying to open (in batch mode, ie using a little script) a ftp connection with a FTP server which is a bit "special" : indeed some commands are not available on this server (such as DIR, PWD, etc.).
It seems that during the startup conversation with the host, winscp automatically sends the command PWD, which triggers an error from the ftp server so the connection is closed:
...
. 2015-06-24 17:59:39.936 --------------------------------------------------------------------------
. 2015-06-24 17:59:39.936 Connecting to vakayl.lu ...
. 2015-06-24 17:59:39.951 Connected with vakayl.lu. Waiting for welcome message...
< 2015-06-24 17:59:39.951 220 Welcome to EAS File Service!
> 2015-06-24 17:59:39.951 USER abc
< 2015-06-24 17:59:39.951 331 User name is OK. Password needed for:abc
> 2015-06-24 17:59:39.951 PASS ***
< 2015-06-24 17:59:40.061 230 User logged in
> 2015-06-24 17:59:40.061 SYST
< 2015-06-24 17:59:42.057 502 Command not implemented
> 2015-06-24 17:59:42.057 FEAT
< 2015-06-24 17:59:42.057 211- Extensions supported:
< 2015-06-24 17:59:42.057 AUTH TLS
< 2015-06-24 17:59:42.057 PBSZ
< 2015-06-24 17:59:42.057 PROT
< 2015-06-24 17:59:42.057 CCC
< 2015-06-24 17:59:42.057 211 END
. 2015-06-24 17:59:42.057 Connected
. 2015-06-24 17:59:42.057 --------------------------------------------------------------------------
. 2015-06-24 17:59:42.057 Using FTP protocol.
. 2015-06-24 17:59:42.073 Doing startup conversation with host.
> 2015-06-24 17:59:42.073 PWD
< 2015-06-24 17:59:44.070 502 Command not implemented
. 2015-06-24 17:59:44.070 Getting current directory name.
> 2015-06-24 17:59:44.070 PWD
< 2015-06-24 17:59:46.082 502 Command not implemented
* 2015-06-24 17:59:46.082 (ECommand) Error getting name of current remote directory.
* 2015-06-24 17:59:46.082 Command not implemented
. 2015-06-24 17:59:46.082 Attempt to close connection due to fatal exception:
* 2015-06-24 17:59:46.082 (ExtException) **Command not implemented**
. 2015-06-24 17:59:46.082 Disconnected from server
=> is it possible to turn off the automatic sending of the command PWD ?
Many thanks