Topic "Connection works via WINSCP GUI, fails via powershell"

Author Message
dcpollaro
[View user's profile]

Joined: 2013-02-19
Posts: 2
Location: NY
Everything works fine when testing with our inhouse SFTP server (through GUI and through powershell script). Now that we are testing with external, we are having problems connecting via the powershell script

using 5.1.3 of the com and the app

we are using pw authentication but they did give me their public key if we want to use that instead (i just dont know how to set this up via the powershell script)

logs when I try via the script

! 2013-03-29 16:23:43.359 Using username "removed".
. 2013-03-29 16:23:43.437 Attempting keyboard-interactive authentication
. 2013-03-29 16:23:43.484 Prompt (6, SSH server: password, Using keyboard-interactive authentication.
. 2013-03-29 16:23:43.484 Enter password for removed, Password:)
. 2013-03-29 16:23:43.484 Using stored password.
. 2013-03-29 16:23:43.546 Keyboard-interactive authentication failed
! 2013-03-29 16:23:43.546 Access denied
. 2013-03-29 16:23:43.546 Attempting keyboard-interactive authentication
. 2013-03-29 16:23:43.593 Prompt (6, SSH server: password, Using keyboard-interactive authentication.
. 2013-03-29 16:23:43.593 Enter password for removed, Password:)
. 2013-03-29 16:23:43.593 Disconnected: Unable to authenticate



logs from GUI


! 2013-03-29 10:12:44.981 Using username "removed".
. 2013-03-29 10:12:45.071 Attempting keyboard-interactive authentication
. 2013-03-29 10:12:45.081 Prompt (6, SSH server: password, Using keyboard-interactive authentication.
. 2013-03-29 10:12:45.081 Enter password for removed, Password:)
. 2013-03-29 10:12:45.081 Using stored password.
. 2013-03-29 10:12:45.161 Access granted
. 2013-03-29 10:12:45.171 Opened channel for session
. 2013-03-29 10:12:45.261 Started a shell/command
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Can you attach or email me a somplete logs for both scenarios?
_________________
Martin Prikryl
Guest




I actualy got it to work by putting the password in single quotes ' ' instead of " " (i tried this randomly)
now the message I get when I transfer a file is

Upload of file 'test2.txt' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn on 'Ignore permission errors' option.

. 2013-04-01 17:18:29.115 Binary transfer mode selected.
. 2013-04-01 17:18:29.115 Opening remote file.
> 2013-04-01 17:18:29.115 Type: SSH_FXP_OPEN, Size: 53, Number: 259
< 2013-04-01 17:18:29.271 Type: SSH_FXP_HANDLE, Size: 10, Number: 259
> 2013-04-01 17:18:29.271 Type: SSH_FXP_WRITE, Size: 56, Number: 774
> 2013-04-01 17:18:29.271 Type: SSH_FXP_CLOSE, Size: 10, Number: 1028
> 2013-04-01 17:18:29.271 Type: SSH_FXP_SETSTAT, Size: 49, Number: 521
< 2013-04-01 17:18:29.318 Type: SSH_FXP_STATUS, Size: 49, Number: 774
< 2013-04-01 17:18:29.443 Type: SSH_FXP_STATUS, Size: 40, Number: 1028
< 2013-04-01 17:18:29.443 Status code: 0
< 2013-04-01 17:18:29.443 Type: SSH_FXP_STATUS, Size: 83, Number: 521
< 2013-04-01 17:18:29.443 Status code: 3, Message: 521, Server: This server does not support operations to modify file attributes., Language:
* 2013-04-01 17:18:29.443 (ETerminal) Permission denied.
* 2013-04-01 17:18:29.443 Error code: 3
* 2013-04-01 17:18:29.443 Error message from server: This server does not support operations to modify file attributes.
* 2013-04-01 17:18:29.443 Request code: 9
. 2013-04-01 17:18:29.443 Asking user:
. 2013-04-01 17:18:29.443 Upload of file 'test2.txt' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn on 'Ignore permission errors' option. ("Permission denied.
. 2013-04-01 17:18:29.443 Error code: 3
. 2013-04-01 17:18:29.443 Error message from server: This server does not support operations to modify file attributes.
. 2013-04-01 17:18:29.443 Request code: 9")
< 2013-04-01 17:18:29.443 Script: Upload of file 'test2.txt' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn on 'Ignore permission errors' option.
< 2013-04-01 17:18:29.443 Script: Permission denied.
< 2013-04-01 17:18:29.443 Error code: 3
< 2013-04-01 17:18:29.443 Error message from server: This server does not support operations to modify file attributes.
< 2013-04-01 17:18:29.443 Request code: 9
* 2013-04-01 17:18:29.443 (EScpSkipFile) Upload of file 'test2.txt' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn on 'Ignore permission errors' option.
* 2013-04-01 17:18:29.443 Permission denied.
* 2013-04-01 17:18:29.443 Error code: 3
* 2013-04-01 17:18:29.443 Error message from server: This server does not support operations to modify file attributes.
* 2013-04-01 17:18:29.443 Request code: 9
. 2013-04-01 17:18:29.443 Script: Failed
> 2013-04-01 17:18:29.661 Script: exit
. 2013-04-01 17:18:29.661 Script: Exit code: 1
. 2013-04-01 17:18:29.661 Closing connection.
. 2013-04-01 17:18:29.661 Sending special code: 12
. 2013-04-01 17:18:29.661 Sent EOF message
dcpollaro
[View user's profile]

Joined: 2013-02-19
Posts: 2
Location: NY
sent you an email with more of the log...
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Please read FAQ:
http://winscp.net/eng/docs/faq_not_owner
_________________
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