Putty works, winscp does not.

Hi,

I have a windows laptop which I seldom use, but reading the recent thread
about “Putty: Server refused our key” I want to replicate it - but my
problem is that although putty connects without problems (with password)
winscp does not. It claims “Host is not communicating for more than 15
seconds. Still waiting.”

But that is not true, I see the attempt in the Linux machine:


> <4.6> 2012-06-02 02:08:35 Telcontar sshd 20033 - -  Accepted keyboard-interactive/pam for cer from 192.168.1.33 port 49252 ssh2
> <4.6> 2012-06-02 02:08:35 Telcontar sshd 20044 - -  subsystem request for sftp by user cer

I’m using winscp437 and oS 11.4

In the windows side, the short log, copied by hand, says:

Searching for host
connecting to host
Authenticating…
using username “cer”
Authenticated
Starting the session…
reading remote directory…

and here it gets stuck, with the above claim of no response. In the host I
see no activity reading directories.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Very strange. I’m a pretty heavy winscp user and I’ve never seen this before. Are you using the standalone version or the one that you have to install ?

On 2012-06-02 02:56, glistwan wrote:

> Very strange. I’m a pretty heavy winscp user and I’ve never seen this
> before. Are you using the standalone version or the one that you have to
> install ?

The installable version. I have just upgraded to the beta 507, same result.

I managed to get a log on the windows side.

susepaste


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

I thought you could try the standalone version because I always use that but anyway I don’t think that’s the problem. Honestly I’ve got no idea what might be the reason for this not working.

This is what I normally get in the winscp log :


--------------------------------------------------------------------------
WinSCP Version 4.3.7 (Build 1679) (OS 6.1.7601 Service Pack 1)
Configuration: C:\Winscp\WinSCP.ini
Local account: CISCO\glistwan
Login time: 2 czerwiec 2012 08:40:46
--------------------------------------------------------------------------
Session name: glistwan@test (Stored session)
Host name: sweet-brew (Port: 22)
User name: glistwan (Password: No, Key file: No)
Tunnel: No
Transfer Protocol: SFTP (SCP)
Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
Proxy: none
SSH protocol version: 2; Compression: No
Bypass authentication: No
Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
SSH Bugs: -,-,-,-,-,-,-,-,-
SFTP Bugs: -,-
Return code variable: Autodetect; Lookup user groups: Yes
Shell: default
EOL: 0, UTF: 2
Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
Local directory: default, Remote directory: home, Update: No, Cache: Yes
Cache directory changes: Yes, Permanent: Yes
DST mode: 1
--------------------------------------------------------------------------
Looking up host "test"
Connecting to 1.1.1.1 port 22
Server version: SSH-2.0-Sun_SSH_1.1.3
Using SSH protocol version 2
We claim version: SSH-2.0-WinSCP_release_4.3.7
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange with hash SHA-1
Host key fingerprint is:
ssh-dss 1024 ***********************************************
Initialised AES-256 SDCTR client->server encryption
Initialised HMAC-SHA1 client->server MAC algorithm
Initialised AES-256 SDCTR server->client encryption
Initialised HMAC-SHA1 server->client MAC algorithm
Using username "glistwan".
Attempting keyboard-interactive authentication
Prompt (6, SSH server authentication, Using keyboard-interactive authentication., Password: )
Access granted
Opened channel for session
Started a shell/command
--------------------------------------------------------------------------
Using SFTP protocol.
Doing startup conversation with host.
Type: SSH_FXP_INIT, Size: 5, Number: -1
Type: SSH_FXP_VERSION, Size: 5, Number: -1
SFTP version 3 negotiated.
We believe the server has signed timestamps bug
We will use UTF-8 strings for status messages only
Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
Getting current directory name.
Getting real path for '.'
Type: SSH_FXP_REALPATH, Size: 10, Number: 1296
Type: SSH_FXP_NAME, Size: 49, Number: 1296
Real path is '/home/glistwan'
Listing directory "/home/glistwan".
Type: SSH_FXP_OPENDIR, Size: 23, Number: 1547
Type: SSH_FXP_HANDLE, Size: 13, Number: 1547
Type: SSH_FXP_READDIR, Size: 13, Number: 1804
Type: SSH_FXP_NAME, Size: 4515, Number: 1804
Type: SSH_FXP_READDIR, Size: 13, Number: 2060
Type: SSH_FXP_STATUS, Size: 28, Number: 2060
Status code: 1
Type: SSH_FXP_CLOSE, Size: 13, Number: 2308
Startup conversation with host finished.
[size=1]
[/size]

On 2012-06-02 08:56, glistwan wrote:
>
> This is what I normally get in the winscp log :

No difference, except that in mine data doesn’t come in :frowning:

Is your Windows firewall up or down? It should not affect, but it is the
only thing I haven’t tried (I’m afraid of lowering it down, it is on wifi).


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Windows firewall is up. You can enable logging in the windows firewall quite similar to the way you can do this in YaST :slight_smile: or try with firewall disabled but I doubt that’s the problem.