Post a reply

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

rikard

Re: Problem in 4-th releases?

yes i semes like it
martin

Re: Problem in 4-th releases?

rikard wrote:

ok SO finaly i install 4.1.9 And it works.

now you hewe work my friend. so it dont work in newer version. bot it works NOW!!! good..

So I suppose it is this issue, right?
rikard

Re: Problem in 4-th releases?

ok SO finaly i install 4.1.9 And it works.

now you hewe work my friend. so it dont work in newer version. bot it works NOW!!! good..

now i will see if the things i like to do works ;)
rikard

Re: Problem in 4-th releases?

Nikum wrote:

I have the same problem, when I run WinSCP 4.2.2 beta.
But, when I try 4.1.9 - it works fine!

ok i shuld try the beta.
martin

Re: Problem in 4-th releases?

Nikum wrote:

I have the same problem, when I run WinSCP 4.2.2 beta.
But, when I try 4.1.9 - it works fine!

So can you please start new thread and post there the log files both from 4.1.9 and 4.2.2?
Nikum

Problem in 4-th releases?

I have the same problem, when I run WinSCP 4.2.2 beta.
But, when I try 4.1.9 - it works fine!
martin

Re: i hope this helpes you to help me

OK, so does your server tell anything useful in the log about reason it denies you access?
Rikard

i hope this helpes you to help me

Hello me agean
i try some thing more to get more loggs to you.

here i use the stored information in the userprofile

i use this command
winscp> open sftp://nisse@nisse

Searching for host...
Connecting to host...
Authenticating...
Using username "nisse".
Authenticating with pre-entered password.
Connection has been unexpectedly closed. Server sent command exit status 0.
Authentication log (see session log for details):
Using username "nisse".

Authentication failed.

the logg whos like this.
. 2009-07-10 13:16:48.362 WinSCP Version 4.2.1 (Build 428) (OS 5.1.2600 Service Pack 3)
. 2009-07-10 13:16:48.362 Login time: den 10 juli 2009 13:16:48
. 2009-07-10 13:16:48.362 --------------------------------------------------------------------------
. 2009-07-10 13:16:48.362 Session name: nisse@nisse
. 2009-07-10 13:16:48.362 Host name: localhost (Port: 2005)
. 2009-07-10 13:16:48.362 User name: pagero (Password: Yes, Key file: No)
. 2009-07-10 13:16:48.362 Tunnel: No
. 2009-07-10 13:16:48.362 Transfer Protocol: SFTP
. 2009-07-10 13:16:48.362 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2009-07-10 13:16:48.362 Proxy: none
. 2009-07-10 13:16:48.362 SSH protocol version: 2; Compression: No
. 2009-07-10 13:16:48.362 Bypass authentication: No
. 2009-07-10 13:16:48.362 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2009-07-10 13:16:48.362 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2009-07-10 13:16:48.362 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2009-07-10 13:16:48.362 SFTP Bugs: -,-
. 2009-07-10 13:16:48.362 Return code variable: Autodetect; Lookup user groups: Yes
. 2009-07-10 13:16:48.362 Shell: default, EOL: 0
. 2009-07-10 13:16:48.362 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2009-07-10 13:16:48.362 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2009-07-10 13:16:48.362 Local directory: M:\, Remote directory: /home/database_dump, Update: No, Cache: Yes
. 2009-07-10 13:16:48.362 Cache directory changes: Yes, Permanent: Yes
. 2009-07-10 13:16:48.362 DST mode: 1
. 2009-07-10 13:16:48.362 --------------------------------------------------------------------------
. 2009-07-10 13:16:48.362 Looking up host "localhost"
. 2009-07-10 13:16:48.362 Connecting to 127.0.0.1 port 2005
. 2009-07-10 13:16:48.753 Server version: SSH-1.99-OpenSSH_4.2
. 2009-07-10 13:16:48.753 Using SSH protocol version 2
. 2009-07-10 13:16:48.753 We claim version: SSH-2.0-WinSCP_release_4.2.1
. 2009-07-10 13:16:48.768 Doing Diffie-Hellman group exchange
. 2009-07-10 13:16:48.784 Doing Diffie-Hellman key exchange with hash SHA-1
. 2009-07-10 13:16:49.018 Host key fingerprint is:
. 2009-07-10 13:16:49.018 ssh-rsa 1024 ---hash---
. 2009-07-10 13:16:49.018 Initialised AES-256 SDCTR client->server encryption
. 2009-07-10 13:16:49.018 Initialised HMAC-SHA1 client->server MAC algorithm
. 2009-07-10 13:16:49.018 Initialised AES-256 SDCTR server->client encryption
. 2009-07-10 13:16:49.018 Initialised HMAC-SHA1 server->client MAC algorithm
! 2009-07-10 13:16:49.034 Using username "nisse".
. 2009-07-10 13:16:49.050 Prompt (5, SSH server authentication, Using keyboard-interactive authentication., Password: )
. 2009-07-10 13:16:49.050 Using stored password.
. 2009-07-10 13:16:49.143 Prompt (5, SSH server authentication, Using keyboard-interactive authentication., <no prompt>)
. 2009-07-10 13:16:49.143 Disconnected: Unable to authenticate
Guest

Re: ok but

ahh yes i do not spesefy the user i write i manaly in this time.
but i tested before to write it in the skript but the same result. how can i make this wrong? you think it is the way i write the user name?
martin

Re: ok but

Again, although you clean you specify users for the script, I do not see this in the log:
. 2009-06-26 10:38:16.019 User name: (Password: No, Key file: No)

So how do you specify a username in the script?
Guest

Re: ok but

ok sorry i am a begginner at this.
so let my clerify it
so if you cant see a error in it is no error in it.

so can you try to look at it agen?

if it is scattered pieces of information it is the loggs that are produced wrong. and it this is the case you can help me?

here i send the originals maby some thing is wrong with my loggs tell my whot is wrong with it. all it there (excepte the hach )
. 2009-06-26 10:38:16.003 --------------------------------------------------------------------------
. 2009-06-26 10:38:16.003 WinSCP Version 4.2.1 (Build 428) (OS 5.1.2600 Service Pack 3)
. 2009-06-26 10:38:16.003 Login time: den 26 juni 2009 10:38:16
. 2009-06-26 10:38:16.019 --------------------------------------------------------------------------
. 2009-06-26 10:38:16.019 Session name: localhost
. 2009-06-26 10:38:16.019 Host name: localhost (Port: 2005)
. 2009-06-26 10:38:16.019 User name:  (Password: No, Key file: No)
. 2009-06-26 10:38:16.019 Tunnel: No
. 2009-06-26 10:38:16.019 Transfer Protocol: SFTP
. 2009-06-26 10:38:16.019 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2009-06-26 10:38:16.019 Proxy: none
. 2009-06-26 10:38:16.019 SSH protocol version: 2; Compression: No
. 2009-06-26 10:38:16.019 Bypass authentication: No
. 2009-06-26 10:38:16.019 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2009-06-26 10:38:16.019 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2009-06-26 10:38:16.019 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2009-06-26 10:38:16.019 SFTP Bugs: -,-
. 2009-06-26 10:38:16.019 Return code variable: Autodetect; Lookup user groups: Yes
. 2009-06-26 10:38:16.019 Shell: default, EOL: 0
. 2009-06-26 10:38:16.019 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2009-06-26 10:38:16.019 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2009-06-26 10:38:16.019 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2009-06-26 10:38:16.019 Cache directory changes: Yes, Permanent: Yes
. 2009-06-26 10:38:16.019 DST mode: 1
. 2009-06-26 10:38:16.019 --------------------------------------------------------------------------
. 2009-06-26 10:38:16.019 Looking up host "localhost"
. 2009-06-26 10:38:16.019 Connecting to 127.0.0.1 port 2005
. 2009-06-26 10:38:16.081 Server version: SSH-1.99-OpenSSH_4.2
. 2009-06-26 10:38:16.081 Using SSH protocol version 2
. 2009-06-26 10:38:16.081 We claim version: SSH-2.0-WinSCP_release_4.2.1
. 2009-06-26 10:38:16.128 Doing Diffie-Hellman group exchange
. 2009-06-26 10:38:16.160 Doing Diffie-Hellman key exchange with hash SHA-1
. 2009-06-26 10:38:16.410 Host key fingerprint is:
. 2009-06-26 10:38:16.410 ssh-rsa 1024 ---hash--  code   "you think it is wrong?"
. 2009-06-26 10:38:16.410 Initialised AES-256 SDCTR client->server encryption
. 2009-06-26 10:38:16.410 Initialised HMAC-SHA1 client->server MAC algorithm
. 2009-06-26 10:38:16.410 Initialised AES-256 SDCTR server->client encryption
. 2009-06-26 10:38:16.410 Initialised HMAC-SHA1 server->client MAC algorithm
. 2009-06-26 10:38:16.566 Prompt (1, SSH login name, , login as: )
. 2009-06-26 10:38:20.754 Prompt (5, SSH server authentication, Using keyboard-interactive authentication., Password: )
. 2009-06-26 10:38:27.723 Prompt (5, SSH server authentication, Using keyboard-interactive authentication., <no prompt>)
. 2009-06-26 10:38:27.723 Disconnected: Unable to authenticate

next one
. 2009-06-26 10:38:16.003 -------------------------------------------------------------------------- 
. 2009-06-26 10:38:16.003 WinSCP Version 4.2.1 (Build 428) (OS 5.1.2600 Service Pack 3)
. 2009-06-26 10:38:16.003 Login time: den 26 juni 2009 10:38:16
. 2009-06-26 10:38:16.019 --------------------------------------------------------------------------
. 2009-06-26 10:38:16.019 Session name: localhost
. 2009-06-26 10:38:16.019 Host name: localhost (Port: 2005)
. 2009-06-26 10:38:16.019 User name: (Password: No, Key file: No)
. 2009-06-26 10:38:16.019 Tunnel: No
. 2009-06-26 10:38:16.019 Transfer Protocol: SFTP
. 2009-06-26 10:38:16.019 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2009-06-26 10:38:16.019 Proxy: none
. 2009-06-26 10:38:16.019 SSH protocol version: 2; Compression: No
. 2009-06-26 10:38:16.019 Bypass authentication: No
. 2009-06-26 10:38:16.019 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2009-06-26 10:38:16.019 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2009-06-26 10:38:16.019 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2009-06-26 10:38:16.019 SFTP Bugs: -,-
. 2009-06-26 10:38:16.019 Return code variable: Autodetect; Lookup user groups: Yes
. 2009-06-26 10:38:16.019 Shell: default, EOL: 0
. 2009-06-26 10:38:16.019 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2009-06-26 10:38:16.019 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2009-06-26 10:38:16.019 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2009-06-26 10:38:16.019 Cache directory changes: Yes, Permanent: Yes
. 2009-06-26 10:38:16.019 DST mode: 1
. 2009-06-26 10:38:16.019 --------------------------------------------------------------------------
. 2009-06-26 10:38:16.019 Looking up host "localhost"
. 2009-06-26 10:38:16.019 Connecting to 127.0.0.1 port 2005
. 2009-06-26 10:38:16.081 Server version: SSH-1.99-OpenSSH_4.2
. 2009-06-26 10:38:16.081 Using SSH protocol version 2
. 2009-06-26 10:38:16.081 We claim version: SSH-2.0-WinSCP_release_4.2.1
. 2009-06-26 10:38:16.128 Doing Diffie-Hellman group exchange
. 2009-06-26 10:38:16.160 Doing Diffie-Hellman key exchange with hash SHA-1
. 2009-06-26 10:38:16.410 Host key fingerprint is:
. 2009-06-26 10:38:16.410 ssh-rsa 1024 ---hash--  code   "you think it is wrong?"
. 2009-06-26 10:38:16.410 Initialised AES-256 SDCTR client->server encryption
. 2009-06-26 10:38:16.410 Initialised HMAC-SHA1 client->server MAC algorithm
. 2009-06-26 10:38:16.410 Initialised AES-256 SDCTR server->client encryption
. 2009-06-26 10:38:16.410 Initialised HMAC-SHA1 server->client MAC algorithm
. 2009-06-26 10:38:16.566 Prompt (1, SSH login name, , login as: )
. 2009-06-26 10:38:20.754 Prompt (5, SSH server authentication, Using keyboard-interactive authentication., Password: )
. 2009-06-26 10:38:27.723 Prompt (5, SSH server authentication, Using keyboard-interactive authentication., <no prompt>)
. 2009-06-26 10:38:27.723 Disconnected: Unable to authenticate
martin

Re: ok but

The point is that I do not have a time to try to create overall view of your problem from scattered pieces of information. So please provide me full log file and let me see what's going wrong.
Rikard

ok but

ok but i dont see the relevence in see my username och hach code
i tested menny times the user name and password
and i tested with psftp.exe and it worked but i dont get nice flexebilety in your nice program winscp.

so i dont think it is username problem. bekose i use the same in psftp.exe olmoste the same syntax.

if you dont know hot to help me only see if i use the same name in the 2 different loggs? whot is the point?

all the rest in the logg is same as the original..

thenk you for trying to help me i reely like this to work.

or you know unather way to automate copy or moving files from i remote place på ower c:??
martin

Re: ok

OK, so can you post a full log file, for session where you believe to specify username correctly? If you do not want to post it here, just email it to me.

You will find my address (if you log in) in my forum profile.
rikard

ok

well i dident change so muth only this
. 2009-06-26 10:51:12.907 Session name: name@name

2009-06-26 10:51:13.361 ssh-rsa 1024 hash same as the nexe one
2009-06-26 10:51:13.407 Using username "name".

 2009-06-26 10:38:16.410 ssh-rsa 1024 same as privius

but i manualy use the same user name
and i write it in the command to but it is the same fail

my envirement is win xp pro CMD promt standard no modifikation
log in as administrator
martin

Re: unexpectedly closed. Server sent command exit status 0.

Hard to tell for sure as you have modified the log. But I suppose that the problem is, there's no username in the script. You should get username prompt generally. But you may be executing the script in environment that does not allow prompts.
Guest

Re: unexpectedly closed. Server sent command exit status 0.

yes it works with GUI

here is first the GUI log
. 2009-06-26 10:51:12.907 --------------------------------------------------------------------------
. 2009-06-26 10:51:12.907 WinSCP Version 4.2.1 (Build 428) (OS 5.1.2600 Service Pack 3)
. 2009-06-26 10:51:12.907 Login time: den 26 juni 2009 10:51:12
. 2009-06-26 10:51:12.907 --------------------------------------------------------------------------
. 2009-06-26 10:51:12.907 Session name: name@name
. 2009-06-26 10:51:12.907 Host name: localhost (Port: 2005)
. 2009-06-26 10:51:12.907 User name: name (Password: Yes, Key file: No)
. 2009-06-26 10:51:12.907 Tunnel: No
. 2009-06-26 10:51:12.907 Transfer Protocol: SFTP (SCP)
. 2009-06-26 10:51:12.907 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2009-06-26 10:51:12.907 Proxy: none
. 2009-06-26 10:51:12.907 SSH protocol version: 2; Compression: No
. 2009-06-26 10:51:12.907 Bypass authentication: No
. 2009-06-26 10:51:12.907 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2009-06-26 10:51:12.907 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2009-06-26 10:51:12.907 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2009-06-26 10:51:12.907 SFTP Bugs: -,-
. 2009-06-26 10:51:12.907 Return code variable: Autodetect; Lookup user groups: Yes
. 2009-06-26 10:51:12.907 Shell: default, EOL: 0
. 2009-06-26 10:51:12.907 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2009-06-26 10:51:12.907 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2009-06-26 10:51:12.907 Local directory: some dir first locan and then remote Update: No, Cache: Yes
. 2009-06-26 10:51:12.907 Cache directory changes: Yes, Permanent: Yes
. 2009-06-26 10:51:12.907 DST mode: 1
. 2009-06-26 10:51:12.907 --------------------------------------------------------------------------
. 2009-06-26 10:51:13.017 Looking up host "localhost"
. 2009-06-26 10:51:13.032 Connecting to 127.0.0.1 port 2005
. 2009-06-26 10:51:13.064 Server version: SSH-1.99-OpenSSH_4.2
. 2009-06-26 10:51:13.064 Using SSH protocol version 2
. 2009-06-26 10:51:13.064 We claim version: SSH-2.0-WinSCP_release_4.2.1
. 2009-06-26 10:51:13.126 Doing Diffie-Hellman group exchange
. 2009-06-26 10:51:13.157 Doing Diffie-Hellman key exchange with hash SHA-1
. 2009-06-26 10:51:13.361 Host key fingerprint is:
. 2009-06-26 10:51:13.361 ssh-rsa 1024 hash same as the nexe one
. 2009-06-26 10:51:13.361 Initialised AES-256 SDCTR client->server encryption
. 2009-06-26 10:51:13.361 Initialised HMAC-SHA1 client->server MAC algorithm
. 2009-06-26 10:51:13.361 Initialised AES-256 SDCTR server->client encryption
. 2009-06-26 10:51:13.361 Initialised HMAC-SHA1 server->client MAC algorithm
! 2009-06-26 10:51:13.407 Using username "name".
. 2009-06-26 10:51:13.454 Prompt (5, SSH server authentication, Using keyboard-interactive authentication., Password: )
. 2009-06-26 10:51:13.454 Using stored password.
. 2009-06-26 10:51:13.548 Prompt (5, SSH server authentication, Using keyboard-interactive authentication., <no prompt>)
. 2009-06-26 10:51:14.751 Access granted
. 2009-06-26 10:51:14.782 Opened channel for session
. 2009-06-26 10:51:14.829 Started a shell/command

now the nex one
. 2009-06-26 10:38:16.003 --------------------------------------------------------------------------
. 2009-06-26 10:38:16.003 WinSCP Version 4.2.1 (Build 428) (OS 5.1.2600 Service Pack 3)
. 2009-06-26 10:38:16.003 Login time: den 26 juni 2009 10:38:16
. 2009-06-26 10:38:16.019 --------------------------------------------------------------------------
. 2009-06-26 10:38:16.019 Session name: localhost
. 2009-06-26 10:38:16.019 Host name: localhost (Port: 2005)
. 2009-06-26 10:38:16.019 User name:  (Password: No, Key file: No)
. 2009-06-26 10:38:16.019 Tunnel: No
. 2009-06-26 10:38:16.019 Transfer Protocol: SFTP
. 2009-06-26 10:38:16.019 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2009-06-26 10:38:16.019 Proxy: none
. 2009-06-26 10:38:16.019 SSH protocol version: 2; Compression: No
. 2009-06-26 10:38:16.019 Bypass authentication: No
. 2009-06-26 10:38:16.019 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2009-06-26 10:38:16.019 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2009-06-26 10:38:16.019 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2009-06-26 10:38:16.019 SFTP Bugs: -,-
. 2009-06-26 10:38:16.019 Return code variable: Autodetect; Lookup user groups: Yes
. 2009-06-26 10:38:16.019 Shell: default, EOL: 0
. 2009-06-26 10:38:16.019 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2009-06-26 10:38:16.019 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2009-06-26 10:38:16.019 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2009-06-26 10:38:16.019 Cache directory changes: Yes, Permanent: Yes
. 2009-06-26 10:38:16.019 DST mode: 1
. 2009-06-26 10:38:16.019 --------------------------------------------------------------------------
. 2009-06-26 10:38:16.019 Looking up host "localhost"
. 2009-06-26 10:38:16.019 Connecting to 127.0.0.1 port 2005
. 2009-06-26 10:38:16.081 Server version: SSH-1.99-OpenSSH_4.2
. 2009-06-26 10:38:16.081 Using SSH protocol version 2
. 2009-06-26 10:38:16.081 We claim version: SSH-2.0-WinSCP_release_4.2.1
. 2009-06-26 10:38:16.128 Doing Diffie-Hellman group exchange
. 2009-06-26 10:38:16.160 Doing Diffie-Hellman key exchange with hash SHA-1
. 2009-06-26 10:38:16.410 Host key fingerprint is:
. 2009-06-26 10:38:16.410 ssh-rsa 1024 same as privius
. 2009-06-26 10:38:16.410 Initialised AES-256 SDCTR client->server encryption
. 2009-06-26 10:38:16.410 Initialised HMAC-SHA1 client->server MAC algorithm
. 2009-06-26 10:38:16.410 Initialised AES-256 SDCTR server->client encryption
. 2009-06-26 10:38:16.410 Initialised HMAC-SHA1 server->client MAC algorithm
. 2009-06-26 10:38:16.566 Prompt (1, SSH login name, , login as: )
. 2009-06-26 10:38:20.754 Prompt (5, SSH server authentication, Using keyboard-interactive authentication., Password: )
. 2009-06-26 10:38:27.723 Prompt (5, SSH server authentication, Using keyboard-interactive authentication., <no prompt>)
. 2009-06-26 10:38:27.723 Disconnected: Unable to authenticate
martin

Re: unexpectedly closed. Server sent command exit status 0.

Do I understand right that it works to open session from GUI, but fails when using scripting?

Please post a full log file both from GUI and script.
rikard

unexpectedly closed. Server sent command exit status 0.

I use putty
set PATH=C:\Program\PuTTY;%PATH%
set /p un="Enter Username: "
plink -l %un% -L [port]:[ip] [adress] echo "Connected, Disconnect

and with this it works great to open winscp in grafik mode
i stored a session an i connect every day and works good to a remote sftp

but now when i try to automate this with
"i use cammand"
open sftp://localhost:[port]

"i get response"
Using keyboard-interactive authentication.

"i write correct password"
Password:

Using keyboard-interactive authentication.
Connection has been unexpectedly closed. Server sent command exit status 0.
Authentication failed.