Topic "GUI does but .net does not"

Author Message
Kleinstein
[View user's profile]

Joined: 2015-03-31
Posts: 1
Location: Berlin/Germany
Hi,

I tested a download from a SFTP-server using your GUI at it worked fine. But when I tried to connect to the same server using .Net it failed.

Comparing the logs I found only these differences:

GUI:
Session name: vattenfall-europe@sftp.verivox.de (Site)
Transfer Protocol: SFTP (SCP)

.Net:
Session name: vattenfall-europe@sftp.verivox.de (Ad-Hoc site)
Transfer Protocol: SFTP

This is the .Net log (I only replaced the password) - the GUI-Log looks the same except the differences above:
Code:

--------------------------------------------------------------------------
WinSCP Version 5.7.1 (Build 5235) (OS 6.1.7601 Service Pack 1 - Windows 7 Professional)
Configuration: nul
Log level: Normal
Local account: EUR\tsteinle
Working directory: C:\Program Files (x86)\WinSCP
Process ID: 4908
Command-line: "C:\Program Files (x86)\WinSCP\winscp.exe" /xmllog="C:\Users\tsteinle\AppData\Local\Temp\wscp14A8.03DDCAD8.tmp" /xmlgroups /nointeractiveinput /dotnet=571  /ini=nul /log="C:\UnBackedUp_Data\App_Projekte\AutoDownload\AutoDownload\bin\Debug\Session.log.txt"  /console /consoleinstance=_5288_51269976_253
Time zone: Current: GMT+2, Standard: GMT+1 (Mitteleuropäische Zeit), DST: GMT+2 (Mitteleuropäische Sommerzeit), DST Start: 29.03.2015, DST End: 25.10.2015
Login time: Dienstag, 31. März 2015 11:43:44
--------------------------------------------------------------------------
Script: Retrospectively logging previous script records:
Script: option batch on
Script: batch           on       
Script: reconnecttime   120       
Script: option confirm off
Script: confirm         off       
Script: option reconnecttime 120
Script: reconnecttime   120       
Script: open sftp://vattenfall-europe:***@sftp.verivox.de:22 -hostkey="ssh-rsa 2048 a8:be:7f:6c:7a:ab:40:d3:9b:91:5d:07:15:41:b9:a7" -timeout=15 -rawsettings ProxyMethod="3" ProxyHost="webproxy-de.corp.vattenfall.com" ProxyPort="8080" ProxyUsername="EUR\tsteinle" ProxyPassword="..." ProxyDNS="3" ProxyLocalhost="0" LocalDirectory="C:\TEMP" RemoteDirectory="/home/vattenfall-europe"
--------------------------------------------------------------------------
Session name: vattenfall-europe@sftp.verivox.de (Ad-Hoc site)
Host name: sftp.verivox.de (Port: 22)
User name: vattenfall-europe (Password: Yes, Key file: No)
Tunnel: No
Transfer Protocol: SFTP
Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
Disable Nagle: No
Proxy: HTTP
HostName: webproxy-de.corp.vattenfall.com (Port: 8080); Username: EUR\tsteinle; Passwd: Yes
Send buffer: 262144
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
KEX: dh-gex-sha1,dh-group14-sha1,dh-group1-sha1,rsa,WARN
SSH Bugs: A,A,A,A,A,A,A,A,A,A,A
Simple channel: Yes
Return code variable: Autodetect; Lookup user groups: A
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
SFTP Bugs: A,A
SFTP Server: default
Local directory: C:\TEMP, Remote directory: /home/vattenfall-europe, Update: Yes, Cache: Yes
Cache directory changes: Yes, Permanent: Yes
DST mode: 1
--------------------------------------------------------------------------
Looking up host "sftp.verivox.de"
Connecting to 10.248.11.250 port 8080
Waiting for data timed out, asking user what to do.



My .Net code is (I only replaced passwords):
Code:

        Dim v_SFTP_Session As New WinSCP.Session
        Dim v_SFTP_SessionOptions As New WinSCP.SessionOptions
        Dim v_SFTP_TransferOptions As New WinSCP.TransferOptions
        Dim v_SFTP_TransferOperationResult As WinSCP.TransferOperationResult
        Dim v_LocalPath As String = "C:\TEMP"
        Dim v_RemotePath As String = "/home/vattenfall-europe/ranking_daily"

        With v_SFTP_SessionOptions
            .Protocol = WinSCP.Protocol.Sftp
            .HostName = "sftp.verivox.de"
            .UserName = "vattenfall-europe"
            .Password = "..."
            .PortNumber = 22
            .SshHostKeyFingerprint = "ssh-rsa 2048 a8:be:7f:6c:7a:ab:40:d3:9b:91:5d:07:15:41:b9:a7"

            .AddRawSettings("ProxyMethod", "3")
            .AddRawSettings("ProxyHost", "webproxy-de.corp.vattenfall.com")
            .AddRawSettings("ProxyPort", "8080")
            .AddRawSettings("ProxyUsername", "EUR\tsteinle")
            .AddRawSettings("ProxyPassword", "...")
            .AddRawSettings("ProxyDNS", "3")
            .AddRawSettings("ProxyLocalhost", "0")
            .AddRawSettings("LocalDirectory", "C:\TEMP")
            .AddRawSettings("RemoteDirectory", "/home/vattenfall-europe")

        End With

        With v_SFTP_Session
            .SessionLogPath = IO.Path.Combine(My.Application.Info.DirectoryPath, "Session.log.txt")
            .Open(v_SFTP_SessionOptions)

            With v_SFTP_TransferOptions
                .TransferMode = WinSCP.TransferMode.Binary
                .FileMask = "e_b_top50_vs_novk_nodp_cl12_cr_nopk_nobon.7z"

            End With

            v_SFTP_TransferOperationResult = .GetFiles(v_RemotePath, v_LocalPath, False, v_SFTP_TransferOptions)

        End With


Could you please help me?!

Thank you in advance!

Thomas
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Can you attach the GUI log anyway?
_________________
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