WinSCP fails to connect

Advertisement

Ksos4life
Joined:
Posts:
3

WinSCP fails to connect

I created a .bat script
@echo off
"C:\Program Files (x86)\WinSCP\Winscp.com" /log=example.log /script="C:\SAGE\Specific\FilesReceived\test.txt"
who executes
open sftp://Username:Password@ftp_address
exit
The script works very well but every 6 launches, it gets stuck on the connection and times out.

I tried several configurations but I can't find what's stuck

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,378
Location:
Prague, Czechia

Re: WinSCP fails to connect

Isn't it the server that blocks you temporarily for too frequent connections?
At the moment the script cannot connect, can you connect anyhow from the same local machine to the same server (in WinSCP GUI, in any other SFTP client)?
Post logs.

Reply with quote

Ksos4life
Joined:
Posts:
3

Re: WinSCP fails to connect

. 2022-09-13 09:40:00.138 --------------------------------------------------------------------------
. 2022-09-13 09:40:00.138 Using SFTP protocol.
. 2022-09-13 09:40:00.138 Doing startup conversation with host.
> 2022-09-13 09:40:00.138 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2022-09-13 09:40:00.155 Type: SSH_FXP_VERSION, Size: 150, Number: -1
. 2022-09-13 09:40:00.155 SFTP version 3 negotiated.
. 2022-09-13 09:40:00.156 Unknown server extension posix-rename@openssh.com="1"
. 2022-09-13 09:40:00.156 Supports statvfs@openssh.com extension version "2"
. 2022-09-13 09:40:00.156 Unknown server extension fstatvfs@openssh.com="2"
. 2022-09-13 09:40:00.156 Supports hardlink@openssh.com extension version "1"
. 2022-09-13 09:40:00.156 Unknown server extension fsync@openssh.com="1"
. 2022-09-13 09:40:00.156 We believe the server has signed timestamps bug
. 2022-09-13 09:40:00.156 We will use UTF-8 strings until server sends an invalid UTF-8 string as with SFTP version 3 and older UTF-8 strings are not mandatory
. 2022-09-13 09:40:00.156 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2022-09-13 09:40:00.156 Getting current directory name.
. 2022-09-13 09:40:00.156 Getting real path for '.'
> 2022-09-13 09:40:00.156 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2022-09-13 09:40:00.173 Type: SSH_FXP_NAME, Size: 67, Number: 16
. 2022-09-13 09:40:00.173 Real path is '/home/accesedizq-hleber'
. 2022-09-13 09:40:00.173 Startup conversation with host finished.
< 2022-09-13 09:40:00.173 Script: Session active : [1] accesedizq-hleber@ftp.cluster027.hosting.ovh.net
> 2022-09-13 09:40:00.173 Script: exit
. 2022-09-13 09:40:00.173 Script: Exit code: 0
. 2022-09-13 09:40:00.173 Closing connection.
. 2022-09-13 09:40:00.173 Sending special code: 12
. 2022-09-13 09:40:00.173 Sent EOF message
. 2022-09-13 09:40:00.914 --------------------------------------------------------------------------
. 2022-09-13 09:40:00.914 WinSCP Version 5.11.3 (Compilation 7995) (OS 10.0.17763 - Windows Server 2019 Standard)
. 2022-09-13 09:40:00.914 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2022-09-13 09:40:00.914 Log level: Normal
. 2022-09-13 09:40:00.914 Local account: ACCES-EDITIONS\Administrator
. 2022-09-13 09:40:00.914 Working directory: C:\SAGE\Specifique\FichiersRecus
. 2022-09-13 09:40:00.914 Process ID: 40560
. 2022-09-13 09:40:00.914 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe" /console=5.11.3 /consoleinstance=_25920_475 "/log=example.log" "/script=C:\SAGE\Specifique\FichiersRecus\test.txt" 
. 2022-09-13 09:40:00.914 Time zone: Current: GMT+2, Standard: GMT+1 (Paris, Madrid), DST: GMT+2 (Paris, Madrid (heure d’été)), DST Start: 27/03/2022, DST End: 30/10/2022
. 2022-09-13 09:40:00.914 Login time: mardi 13 septembre 2022 09:40:00
. 2022-09-13 09:40:00.914 --------------------------------------------------------------------------
. 2022-09-13 09:40:00.914 Script: Retrospectively logging previous script records:
> 2022-09-13 09:40:00.914 Script: open sftp://accesedizq-hleber:***@ftp.cluster027.hosting.ovh.net -passive
. 2022-09-13 09:40:00.914 --------------------------------------------------------------------------
. 2022-09-13 09:40:00.914 Session name: accesedizq-hleber@ftp.cluster027.hosting.ovh.net (Ad-Hoc site)
. 2022-09-13 09:40:00.914 Host name: ftp.cluster027.hosting.ovh.net (Port: 22)
. 2022-09-13 09:40:00.914 User name: accesedizq-hleber (Password: Yes, Key file: No, Passphrase: No)
. 2022-09-13 09:40:00.914 Tunnel: No
. 2022-09-13 09:40:00.914 Transfer Protocol: SFTP
. 2022-09-13 09:40:00.914 Ping type: Off, Ping interval: 30 sec; Timeout: 15 sec
. 2022-09-13 09:40:00.914 Disable Nagle: No
. 2022-09-13 09:40:00.914 Proxy: None
. 2022-09-13 09:40:00.914 Send buffer: 262144
. 2022-09-13 09:40:00.914 SSH protocol version: 2; Compression: No
. 2022-09-13 09:40:00.914 Bypass authentication: No
. 2022-09-13 09:40:00.914 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: Yes
. 2022-09-13 09:40:00.914 GSSAPI: Forwarding: No
. 2022-09-13 09:40:00.914 Ciphers: aes,chacha20,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2022-09-13 09:40:00.914 KEX: ecdh,dh-gex-sha1,dh-group14-sha1,rsa,WARN,dh-group1-sha1
. 2022-09-13 09:40:00.914 SSH Bugs: Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto
. 2022-09-13 09:40:00.914 Simple channel: Yes
. 2022-09-13 09:40:00.914 Return code variable: Autodetect; Lookup user groups: Auto
. 2022-09-13 09:40:00.914 Shell: default
. 2022-09-13 09:40:00.914 EOL: LF, UTF: Auto
. 2022-09-13 09:40:00.914 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes; Follow directory symlinks: No
. 2022-09-13 09:40:00.915 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2022-09-13 09:40:00.915 SFTP Bugs: Auto,Auto
. 2022-09-13 09:40:00.915 SFTP Server: default
. 2022-09-13 09:40:00.915 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2022-09-13 09:40:00.915 Cache directory changes: Yes, Permanent: Yes
. 2022-09-13 09:40:00.915 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2022-09-13 09:40:00.915 DST mode: Unix
. 2022-09-13 09:40:00.915 --------------------------------------------------------------------------
. 2022-09-13 09:40:00.915 Looking up host "ftp.cluster027.hosting.ovh.net" for SSH connection
. 2022-09-13 09:40:00.918 Connecting to 54.37.121.236 port 22
. 2022-09-13 09:40:00.936 We claim version: SSH-2.0-WinSCP_release_5.11.3
. 2022-09-13 09:40:00.954 Server version: SSH-2.0-OpenSSH_7.9p1
. 2022-09-13 09:40:00.954 Using SSH protocol version 2
. 2022-09-13 09:40:00.954 Have a known host key of type ssh-ed25519
. 2022-09-13 09:40:00.972 Doing ECDH key exchange with curve Curve25519 and hash SHA-256
. 2022-09-13 09:40:01.303 Server also has ssh-rsa host key, but we don't know it
. 2022-09-13 09:40:01.304 Host key fingerprint is:
. 2022-09-13 09:40:01.304 ssh-ed25519 256 cd:7a:44:74:e9:e6:96:ec:23:00:11:39:0a:3b:29:16
. 2022-09-13 09:40:01.304 Verifying host key ssh-ed25519 0x7219bd93f3da7097 e04a9f3f18267ea1 57431fb6b0a10eae 3f2c27054592dbbf ,0x4567f12c24691f06 3ace3824a35ded2a 8680b73baac25709 e51ae3f1ce6818fe  with fingerprint ssh-ed25519 256 cd:7a:44:74:e9:e6:96:ec:23:00:11:39:0a:3b:29:16
. 2022-09-13 09:40:01.304 Host key matches cached key
. 2022-09-13 09:40:01.305 Initialised AES-256 SDCTR client->server encryption
. 2022-09-13 09:40:01.305 Initialised HMAC-SHA-256 client->server MAC algorithm
. 2022-09-13 09:40:01.305 Initialised AES-256 SDCTR server->client encryption
. 2022-09-13 09:40:01.305 Initialised HMAC-SHA-256 server->client MAC algorithm
! 2022-09-13 09:40:01.339 Using username "accesedizq-hleber".
. 2022-09-13 09:40:01.364 Server offered these authentication methods: publickey,password
. 2022-09-13 09:40:01.364 Prompt (password, "SSH password", <no instructions>, "Mot de passe :")
. 2022-09-13 09:40:01.364 Using stored password.
. 2022-09-13 09:40:01.364 Sent password
. 2022-09-13 09:40:01.389 Access granted
. 2022-09-13 09:40:01.390 Opening session as main channel
. 2022-09-13 09:40:01.464 Opened main channel
. 2022-09-13 09:40:01.542 Started a shell/command
. 2022-09-13 09:40:01.542 --------------------------------------------------------------------------
. 2022-09-13 09:40:01.542 Using SFTP protocol.
. 2022-09-13 09:40:01.542 Doing startup conversation with host.
> 2022-09-13 09:40:01.542 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2022-09-13 09:40:01.559 Type: SSH_FXP_VERSION, Size: 150, Number: -1
. 2022-09-13 09:40:01.559 SFTP version 3 negotiated.
. 2022-09-13 09:40:01.559 Unknown server extension posix-rename@openssh.com="1"
. 2022-09-13 09:40:01.559 Supports statvfs@openssh.com extension version "2"
. 2022-09-13 09:40:01.559 Unknown server extension fstatvfs@openssh.com="2"
. 2022-09-13 09:40:01.559 Supports hardlink@openssh.com extension version "1"
. 2022-09-13 09:40:01.559 Unknown server extension fsync@openssh.com="1"
. 2022-09-13 09:40:01.559 We believe the server has signed timestamps bug
. 2022-09-13 09:40:01.559 We will use UTF-8 strings until server sends an invalid UTF-8 string as with SFTP version 3 and older UTF-8 strings are not mandatory
. 2022-09-13 09:40:01.559 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2022-09-13 09:40:01.559 Getting current directory name.
. 2022-09-13 09:40:01.559 Getting real path for '.'
> 2022-09-13 09:40:01.559 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2022-09-13 09:40:01.576 Type: SSH_FXP_NAME, Size: 67, Number: 16
. 2022-09-13 09:40:01.576 Real path is '/home/accesedizq-hleber'
. 2022-09-13 09:40:01.576 Startup conversation with host finished.
< 2022-09-13 09:40:01.576 Script: Session active : [1] accesedizq-hleber@ftp.cluster027.hosting.ovh.net
> 2022-09-13 09:40:01.577 Script: exit
. 2022-09-13 09:40:01.577 Script: Exit code: 0
. 2022-09-13 09:40:01.577 Closing connection.
. 2022-09-13 09:40:01.577 Sending special code: 12
. 2022-09-13 09:40:01.577 Sent EOF message
. 2022-09-13 09:40:02.302 --------------------------------------------------------------------------
. 2022-09-13 09:40:02.302 WinSCP Version 5.11.3 (Compilation 7995) (OS 10.0.17763 - Windows Server 2019 Standard)
. 2022-09-13 09:40:02.302 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2022-09-13 09:40:02.303 Log level: Normal
. 2022-09-13 09:40:02.303 Local account: ACCES-EDITIONS\Administrator
. 2022-09-13 09:40:02.303 Working directory: C:\SAGE\Specifique\FichiersRecus
. 2022-09-13 09:40:02.303 Process ID: 36100
. 2022-09-13 09:40:02.303 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe" /console=5.11.3 /consoleinstance=_38928_330 "/log=example.log" "/script=C:\SAGE\Specifique\FichiersRecus\test.txt" 
. 2022-09-13 09:40:02.303 Time zone: Current: GMT+2, Standard: GMT+1 (Paris, Madrid), DST: GMT+2 (Paris, Madrid (heure d’été)), DST Start: 27/03/2022, DST End: 30/10/2022
. 2022-09-13 09:40:02.303 Login time: mardi 13 septembre 2022 09:40:02
. 2022-09-13 09:40:02.303 --------------------------------------------------------------------------
. 2022-09-13 09:40:02.303 Script: Retrospectively logging previous script records:
> 2022-09-13 09:40:02.303 Script: open sftp://accesedizq-hleber:***@ftp.cluster027.hosting.ovh.net -passive
. 2022-09-13 09:40:02.303 --------------------------------------------------------------------------
. 2022-09-13 09:40:02.303 Session name: accesedizq-hleber@ftp.cluster027.hosting.ovh.net (Ad-Hoc site)
. 2022-09-13 09:40:02.303 Host name: ftp.cluster027.hosting.ovh.net (Port: 22)
. 2022-09-13 09:40:02.303 User name: accesedizq-hleber (Password: Yes, Key file: No, Passphrase: No)
. 2022-09-13 09:40:02.303 Tunnel: No
. 2022-09-13 09:40:02.303 Transfer Protocol: SFTP
. 2022-09-13 09:40:02.303 Ping type: Off, Ping interval: 30 sec; Timeout: 15 sec
. 2022-09-13 09:40:02.303 Disable Nagle: No
. 2022-09-13 09:40:02.303 Proxy: None
. 2022-09-13 09:40:02.303 Send buffer: 262144
. 2022-09-13 09:40:02.303 SSH protocol version: 2; Compression: No
. 2022-09-13 09:40:02.303 Bypass authentication: No
. 2022-09-13 09:40:02.303 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: Yes
. 2022-09-13 09:40:02.303 GSSAPI: Forwarding: No
. 2022-09-13 09:40:02.303 Ciphers: aes,chacha20,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2022-09-13 09:40:02.303 KEX: ecdh,dh-gex-sha1,dh-group14-sha1,rsa,WARN,dh-group1-sha1
. 2022-09-13 09:40:02.303 SSH Bugs: Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto
. 2022-09-13 09:40:02.303 Simple channel: Yes
. 2022-09-13 09:40:02.303 Return code variable: Autodetect; Lookup user groups: Auto
. 2022-09-13 09:40:02.303 Shell: default
. 2022-09-13 09:40:02.303 EOL: LF, UTF: Auto
. 2022-09-13 09:40:02.303 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes; Follow directory symlinks: No
. 2022-09-13 09:40:02.303 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2022-09-13 09:40:02.303 SFTP Bugs: Auto,Auto
. 2022-09-13 09:40:02.303 SFTP Server: default
. 2022-09-13 09:40:02.303 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2022-09-13 09:40:02.303 Cache directory changes: Yes, Permanent: Yes
. 2022-09-13 09:40:02.303 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2022-09-13 09:40:02.303 DST mode: Unix
. 2022-09-13 09:40:02.303 --------------------------------------------------------------------------
. 2022-09-13 09:40:02.304 Looking up host "ftp.cluster027.hosting.ovh.net" for SSH connection
. 2022-09-13 09:40:02.306 Connecting to 54.37.121.236 port 22
. 2022-09-13 09:40:02.324 We claim version: SSH-2.0-WinSCP_release_5.11.3
. 2022-09-13 09:40:02.342 Server version: SSH-2.0-OpenSSH_7.9p1
. 2022-09-13 09:40:02.342 Using SSH protocol version 2
. 2022-09-13 09:40:02.342 Have a known host key of type ssh-ed25519
. 2022-09-13 09:40:02.361 Doing ECDH key exchange with curve Curve25519 and hash SHA-256
. 2022-09-13 09:40:02.625 Server also has ssh-rsa host key, but we don't know it
. 2022-09-13 09:40:02.625 Host key fingerprint is:
. 2022-09-13 09:40:02.625 ssh-ed25519 256 cd:7a:44:74:e9:e6:96:ec:23:00:11:39:0a:3b:29:16
. 2022-09-13 09:40:02.625 Verifying host key ssh-ed25519 0x7219bd93f3da7097 e04a9f3f18267ea1 57431fb6b0a10eae 3f2c27054592dbbf ,0x4567f12c24691f06 3ace3824a35ded2a 8680b73baac25709 e51ae3f1ce6818fe  with fingerprint ssh-ed25519 256 cd:7a:44:74:e9:e6:96:ec:23:00:11:39:0a:3b:29:16
. 2022-09-13 09:40:02.626 Host key matches cached key
. 2022-09-13 09:40:02.626 Initialised AES-256 SDCTR client->server encryption
. 2022-09-13 09:40:02.626 Initialised HMAC-SHA-256 client->server MAC algorithm
. 2022-09-13 09:40:02.626 Initialised AES-256 SDCTR server->client encryption
. 2022-09-13 09:40:02.626 Initialised HMAC-SHA-256 server->client MAC algorithm
! 2022-09-13 09:40:02.661 Using username "accesedizq-hleber".
. 2022-09-13 09:40:02.687 Server offered these authentication methods: publickey,password
. 2022-09-13 09:40:02.687 Prompt (password, "SSH password", <no instructions>, "Mot de passe :")
. 2022-09-13 09:40:02.687 Using stored password.
. 2022-09-13 09:40:02.687 Sent password
. 2022-09-13 09:40:02.713 Access granted
. 2022-09-13 09:40:02.713 Opening session as main channel
. 2022-09-13 09:40:02.787 Opened main channel
. 2022-09-13 09:40:02.862 Started a shell/command
. 2022-09-13 09:40:02.862 --------------------------------------------------------------------------
. 2022-09-13 09:40:02.862 Using SFTP protocol.
. 2022-09-13 09:40:02.862 Doing startup conversation with host.
> 2022-09-13 09:40:02.862 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2022-09-13 09:40:02.879 Type: SSH_FXP_VERSION, Size: 150, Number: -1
. 2022-09-13 09:40:02.879 SFTP version 3 negotiated.
. 2022-09-13 09:40:02.879 Unknown server extension posix-rename@openssh.com="1"
. 2022-09-13 09:40:02.879 Supports statvfs@openssh.com extension version "2"
. 2022-09-13 09:40:02.879 Unknown server extension fstatvfs@openssh.com="2"
. 2022-09-13 09:40:02.879 Supports hardlink@openssh.com extension version "1"
. 2022-09-13 09:40:02.879 Unknown server extension fsync@openssh.com="1"
. 2022-09-13 09:40:02.879 We believe the server has signed timestamps bug
. 2022-09-13 09:40:02.879 We will use UTF-8 strings until server sends an invalid UTF-8 string as with SFTP version 3 and older UTF-8 strings are not mandatory
. 2022-09-13 09:40:02.879 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2022-09-13 09:40:02.879 Getting current directory name.
. 2022-09-13 09:40:02.879 Getting real path for '.'
> 2022-09-13 09:40:02.879 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2022-09-13 09:40:02.896 Type: SSH_FXP_NAME, Size: 67, Number: 16
. 2022-09-13 09:40:02.897 Real path is '/home/accesedizq-hleber'
. 2022-09-13 09:40:02.897 Startup conversation with host finished.
< 2022-09-13 09:40:02.897 Script: Session active : [1] accesedizq-hleber@ftp.cluster027.hosting.ovh.net
> 2022-09-13 09:40:02.897 Script: exit
. 2022-09-13 09:40:02.897 Script: Exit code: 0
. 2022-09-13 09:40:02.897 Closing connection.
. 2022-09-13 09:40:02.897 Sending special code: 12
. 2022-09-13 09:40:02.897 Sent EOF message
. 2022-09-13 09:40:03.617 --------------------------------------------------------------------------
. 2022-09-13 09:40:03.617 WinSCP Version 5.11.3 (Compilation 7995) (OS 10.0.17763 - Windows Server 2019 Standard)
. 2022-09-13 09:40:03.617 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2022-09-13 09:40:03.617 Log level: Normal
. 2022-09-13 09:40:03.617 Local account: ACCES-EDITIONS\Administrator
. 2022-09-13 09:40:03.617 Working directory: C:\SAGE\Specifique\FichiersRecus
. 2022-09-13 09:40:03.617 Process ID: 8948
. 2022-09-13 09:40:03.618 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe" /console=5.11.3 /consoleinstance=_43840_258 "/log=example.log" "/script=C:\SAGE\Specifique\FichiersRecus\test.txt" 
. 2022-09-13 09:40:03.618 Time zone: Current: GMT+2, Standard: GMT+1 (Paris, Madrid), DST: GMT+2 (Paris, Madrid (heure d’été)), DST Start: 27/03/2022, DST End: 30/10/2022
. 2022-09-13 09:40:03.618 Login time: mardi 13 septembre 2022 09:40:03
. 2022-09-13 09:40:03.618 --------------------------------------------------------------------------
. 2022-09-13 09:40:03.618 Script: Retrospectively logging previous script records:
> 2022-09-13 09:40:03.618 Script: open sftp://accesedizq-hleber:***@ftp.cluster027.hosting.ovh.net -passive
. 2022-09-13 09:40:03.618 --------------------------------------------------------------------------
. 2022-09-13 09:40:03.618 Session name: accesedizq-hleber@ftp.cluster027.hosting.ovh.net (Ad-Hoc site)
. 2022-09-13 09:40:03.618 Host name: ftp.cluster027.hosting.ovh.net (Port: 22)
. 2022-09-13 09:40:03.618 User name: accesedizq-hleber (Password: Yes, Key file: No, Passphrase: No)
. 2022-09-13 09:40:03.618 Tunnel: No
. 2022-09-13 09:40:03.618 Transfer Protocol: SFTP
. 2022-09-13 09:40:03.618 Ping type: Off, Ping interval: 30 sec; Timeout: 15 sec
. 2022-09-13 09:40:03.618 Disable Nagle: No
. 2022-09-13 09:40:03.618 Proxy: None
. 2022-09-13 09:40:03.618 Send buffer: 262144
. 2022-09-13 09:40:03.618 SSH protocol version: 2; Compression: No
. 2022-09-13 09:40:03.618 Bypass authentication: No
. 2022-09-13 09:40:03.618 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: Yes
. 2022-09-13 09:40:03.618 GSSAPI: Forwarding: No
. 2022-09-13 09:40:03.618 Ciphers: aes,chacha20,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2022-09-13 09:40:03.618 KEX: ecdh,dh-gex-sha1,dh-group14-sha1,rsa,WARN,dh-group1-sha1
. 2022-09-13 09:40:03.618 SSH Bugs: Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto
. 2022-09-13 09:40:03.618 Simple channel: Yes
. 2022-09-13 09:40:03.618 Return code variable: Autodetect; Lookup user groups: Auto
. 2022-09-13 09:40:03.618 Shell: default
. 2022-09-13 09:40:03.618 EOL: LF, UTF: Auto
. 2022-09-13 09:40:03.618 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes; Follow directory symlinks: No
. 2022-09-13 09:40:03.618 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2022-09-13 09:40:03.618 SFTP Bugs: Auto,Auto
. 2022-09-13 09:40:03.618 SFTP Server: default
. 2022-09-13 09:40:03.618 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2022-09-13 09:40:03.618 Cache directory changes: Yes, Permanent: Yes
. 2022-09-13 09:40:03.618 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2022-09-13 09:40:03.618 DST mode: Unix
. 2022-09-13 09:40:03.618 --------------------------------------------------------------------------
. 2022-09-13 09:40:03.618 Looking up host "ftp.cluster027.hosting.ovh.net" for SSH connection
. 2022-09-13 09:40:03.621 Connecting to 54.37.121.236 port 22
. 2022-09-13 09:40:03.640 We claim version: SSH-2.0-WinSCP_release_5.11.3
. 2022-09-13 09:40:18.725 Waiting for data timed out, asking user what to do.
. 2022-09-13 09:40:18.725 Asking user:
. 2022-09-13 09:40:18.725 **L''hôte n''a pas répondu pendant 15 secondes.
. 2022-09-13 09:40:18.725 
. 2022-09-13 09:40:18.725 Attendre encore 15 secondes ?** ()
. 2022-09-13 09:40:22.804 Data has arrived, closing query to user.
. 2022-09-13 09:40:22.804 Network error: Software caused connection abort

Reply with quote

martin
Site Admin
martin avatar

Re: WinSCP fails to connect

Can you please explain what do the logs represent? You didn't answer my questions either.

Reply with quote

Ksos4life
Joined:
Posts:
3

Re: WinSCP fails to connect

I tried to connect in ftp and not sftp and it works perfectly. In sftp every 6th connection I receive a time out.

I tried with several servers and I have the same problem.

The log corresponds to 2 successful connections and the last failed.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,378
Location:
Prague, Czechia

Re: WinSCP fails to connect

I have asked you:
At the moment the script cannot connect, can you connect anyhow from the same local machine to the same server (in WinSCP GUI, in any other SFTP client)?
How long does the period during which you cannot connect lasts?

Reply with quote

Guest

Re: WinSCP fails to connect

I can connect from anywhere just fine.

The script misses the 6th connection, the 12th...

if I launch the 6th and immediately the 7th the 6 is waiting for connection and the 7th works.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,378
Location:
Prague, Czechia

Re: WinSCP fails to connect

I hope you can understand that WinSCP does not block every 6th connection for fun. It does not even know that it's 6th connection. WinSCP does not even remember anywhere that its previous instances connected somewhere already, let only how many times.

It must be something external to WinSCP. Firewall, the server itself... Can you open 6 connections in sequence in WinSCP GUI or in any other FTP client?

Reply with quote

Advertisement

You can post new topics in this forum