Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Error code: 3

Without any context it's difficult to help you.

Either you do not have permissions to write to the remote directory. We cannot help you with that.

Or you do not have permissions to create new files, but have permissions to overwrite existing files. In that case you need to turn off transfer resuming:
https://winscp.net/eng/docs/ui_pref_resume
ZONESKY

Error code: 3

Session name: Test@123.456.78.9 (Modified stored session)
. 2012-07-17 11:05:05.794 Host name: 123.456.78.9 (Port: 22)
. 2012-07-17 11:05:05.794 User name: Test (Password: Yes, Key file: No)
. 2012-07-17 11:05:05.795 Tunnel: No
. 2012-07-17 11:05:05.795 Transfer Protocol: SFTP (SCP)
. 2012-07-17 11:05:05.795 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2012-07-17 11:05:05.795 Proxy: none
. 2012-07-17 11:05:05.795 SSH protocol version: 2; Compression: No
. 2012-07-17 11:05:05.795 Bypass authentication: No
. 2012-07-17 11:05:05.795 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2012-07-17 11:05:05.795 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2012-07-17 11:05:05.795 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2012-07-17 11:05:05.795 SFTP Bugs: -,-
. 2012-07-17 11:05:05.795 Return code variable: Autodetect; Lookup user groups: Yes
. 2012-07-17 11:05:05.795 Shell: default
. 2012-07-17 11:05:05.795 EOL: 0, UTF: 2
. 2012-07-17 11:05:05.795 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2012-07-17 11:05:05.795 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2012-07-17 11:05:05.795 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2012-07-17 11:05:05.795 Cache directory changes: Yes, Permanent: Yes
. 2012-07-17 11:05:05.795 DST mode: 1
. 2012-07-17 11:05:05.795 --------------------------------------------------------------------------
. 2012-07-17 11:05:05.795 Looking up host "123.456.78.9"
. 2012-07-17 11:05:05.795 Connecting to 123.456.78.9 port 22
. 2012-07-17 11:05:05.913 Server version: SSH-2.0-OpenSSH_5.6
. 2012-07-17 11:05:05.913 Using SSH protocol version 2
. 2012-07-17 11:05:05.914 We claim version: SSH-2.0-WinSCP_release_4.3.7
. 2012-07-17 11:05:05.955 Doing Diffie-Hellman group exchange
. 2012-07-17 11:05:06.160 Doing Diffie-Hellman key exchange with hash SHA-1
. 2012-07-17 11:05:06.335 Host key fingerprint is:
. 2012-07-17 11:05:06.335 ssh-rsa 1234 44efr 345r r244 55677 33kfk
. 2012-07-17 11:05:06.335 Initialised AES-256 SDCTR client->server encryption
. 2012-07-17 11:05:06.335 Initialised HMAC-SHA1 client->server MAC algorithm
. 2012-07-17 11:05:06.335 Initialised AES-256 SDCTR server->client encryption
. 2012-07-17 11:05:06.335 Initialised HMAC-SHA1 server->client MAC algorithm
! 2012-07-17 11:05:06.545 Using username "Test".
. 2012-07-17 11:05:11.085 Attempting keyboard-interactive authentication
. 2012-07-17 11:05:11.088 Server refused keyboard-interactive authentication
. 2012-07-17 11:05:11.088 Prompt (7, SSH password, , &Password: )
. 2012-07-17 11:05:11.088 Using stored password.
. 2012-07-17 11:05:11.089 Sent password
. 2012-07-17 11:05:11.101 Access granted
. 2012-07-17 11:05:11.130 Opened channel for session
. 2012-07-17 11:05:11.399 Started a shell/command
. 2012-07-17 11:05:11.399 --------------------------------------------------------------------------
. 2012-07-17 11:05:11.399 Using SFTP protocol.
. 2012-07-17 11:05:11.399 Doing startup conversation with host.
> 2012-07-17 11:05:11.399 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2012-07-17 11:05:11.551 Type: SSH_FXP_VERSION, Size: 95, Number: -1
. 2012-07-17 11:05:11.552 SFTP version 3 negotiated.
. 2012-07-17 11:05:11.552 Unknown server extension posix-rename@openssh.com="1"
. 2012-07-17 11:05:11.552 Unknown server extension statvfs@openssh.com="2"
. 2012-07-17 11:05:11.552 Unknown server extension fstatvfs@openssh.com="2"
. 2012-07-17 11:05:11.552 We believe the server has signed timestamps bug
. 2012-07-17 11:05:11.552 We will use UTF-8 strings for status messages only
. 2012-07-17 11:05:11.552 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2012-07-17 11:05:11.552 Getting current directory name.
. 2012-07-17 11:05:11.552 Getting real path for '.'
> 2012-07-17 11:05:11.552 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2012-07-17 11:05:11.600 Type: SSH_FXP_NAME, Size: 61, Number: 16
. 2012-07-17 11:05:11.600 Real path is '/cygdrive/f/test'
. 2012-07-17 11:05:11.600 Startup conversation with host finished.
< 2012-07-17 11:05:11.601 Script: Active session: [1] test@123.456.78.9
> 2012-07-17 11:05:11.601 Script: option transfer binary
< 2012-07-17 11:05:11.601 Script: transfer binary
> 2012-07-17 11:05:11.602 Script: put "C:\FILE\FLE1\FLE2\test.txt" /
. 2012-07-17 11:05:11.602 Copying 1 files/directories to remote directory "/"
. 2012-07-17 11:05:11.602 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask:
. 2012-07-17 11:05:11.602 TM: B; ClAr: No; CPS: 0; ExclM(No):
. 2012-07-17 11:05:11.602 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2012-07-17 11:05:11.602 File: "C:\FILE\FLE1\FLE2\test.txt"
. 2012-07-17 11:05:11.603 "C:\FILE\FLE1\FLE2\test.txt" to remote directory started.
. 2012-07-17 11:05:11.603 Binary transfer mode selected.
. 2012-07-17 11:05:11.603 Checking existence of file.
> 2012-07-17 11:05:11.603 Type: SSH_FXP_LSTAT, Size: 31, Number: 263
< 2012-07-17 11:05:11.644 Type: SSH_FXP_STATUS, Size: 29, Number: 263
< 2012-07-17 11:05:11.644 Status code: 2
. 2012-07-17 11:05:11.644 Checking existence of partially transfered file.
> 2012-07-17 11:05:11.644 Type: SSH_FXP_LSTAT, Size: 40, Number: 519
< 2012-07-17 11:05:11.712 Type: SSH_FXP_STATUS, Size: 29, Number: 519
< 2012-07-17 11:05:11.712 Status code: 2
. 2012-07-17 11:05:11.712 Opening remote file.
> 2012-07-17 11:05:11.712 Type: SSH_FXP_OPEN, Size: 56, Number: 771
< 2012-07-17 11:05:11.787 Type: SSH_FXP_STATUS, Size: 34, Number: 771
< 2012-07-17 11:05:11.787 Status code: 3, Message: 771, Server: Permission denied, Language:
> 2012-07-17 11:05:11.787 Type: SSH_FXP_LSTAT, Size: 40, Number: 1031
< 2012-07-17 11:05:11.846 Type: SSH_FXP_STATUS, Size: 29, Number: 1031
< 2012-07-17 11:05:11.846 Status code: 2, Message: 1031, Server: No such file, Language:
* 2012-07-17 11:05:11.846 (ETerminal) Permission denied.
* 2012-07-17 11:05:11.847 Error code: 3
* 2012-07-17 11:05:11.847 Error message from server: Permission denied
* 2012-07-17 11:05:11.847 Request code: 3
. 2012-07-17 11:05:11.847 Asking user:
. 2012-07-17 11:05:11.847 Cannot create remote file '/test.txt.filepart'. ("Permission denied.
. 2012-07-17 11:05:11.847 Error code: 3
. 2012-07-17 11:05:11.847 Error message from server: Permission denied
. 2012-07-17 11:05:11.847 Request code: 3")
* 2012-07-17 11:05:11.848 (EScpSkipFile) Cannot create remote file '/test.txt.filepart'.
* 2012-07-17 11:05:11.848 Permission denied.
* 2012-07-17 11:05:11.848 Error code: 3
* 2012-07-17 11:05:11.848 Error message from server: Permission denied
* 2012-07-17 11:05:11.848 Request code: 3
. 2012-07-17 11:05:11.848 Script: Failed