SSL Connection ftps connecting to 7.5 ftp server MS

Advertisement

dmalso
Joined:
Posts:
6

SSL Connection ftps connecting to 7.5 ftp server MS

Need to script to connect and pull over files;
I need to connect ftp.fpt.com|username

Unable to get the right scripting down. ANy help appreciated

Reply with quote

Advertisement

dmalso
Joined:
Posts:
6

SSL Connection ftps connecting to 7.5 ftp server MS

IT makes connection but then fails.

I also can make the connection with filezilla.


C:\PROGRA~1\WinSCP3>winscp /script=appealsin.txt /log=c:\winscp.txt
batch on
confirm off
transfer ascii
Connecting to x.x.x.x:990 ...
Connected with x.x.x.x:990, negotiating SSL connection...
SSL connection established. Waiting for welcome message...
Connection failed.
Authentication failed.
Connection failed.
Valid hostname is expected.
No session.

error file:

. 2011-02-14 12:32:54.539 WinSCP Version 4.2.9 (Build 938) (OS 6.1.7600)
. 2011-02-14 12:32:54.539 Login time: Monday, February 14, 2011 12:32:54 PM
. 2011-02-14 12:32:54.539 --------------------------------------------------------------------------
. 2011-02-14 12:32:54.539 Session name: appealsadmin@doeftp.doe.state.wy.us
. 2011-02-14 12:32:54.539 Host name: doeftp.doe.state.wy.us (Port: 990)
. 2011-02-14 12:32:54.539 User name: appealsadmin (Password: Yes, Key file: No)
. 2011-02-14 12:32:54.539 Tunnel: No
. 2011-02-14 12:32:54.539 Transfer Protocol: FTP
. 2011-02-14 12:32:54.539 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2011-02-14 12:32:54.539 Proxy: none
. 2011-02-14 12:32:54.539 FTP: FTPS: Implicit SSL/TLS; Passive: Yes [Force IP: No]
. 2011-02-14 12:32:54.539 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2011-02-14 12:32:54.539 Cache directory changes: Yes, Permanent: Yes
. 2011-02-14 12:32:54.539 DST mode: 1
. 2011-02-14 12:32:54.539 --------------------------------------------------------------------------
. 2011-02-14 12:32:54.929 Connecting to doeftp.doe.state.wy.us:990 ...
. 2011-02-14 12:32:54.944 Connected with doeftp.doe.state.wy.us:990, negotiating SSL connection...
. 2011-02-14 12:32:54.960 SSL connection established. Waiting for welcome message...
< 2011-02-14 12:32:54.960 220 Microsoft FTP Service
> 2011-02-14 12:32:54.960 USER appealsadmin
< 2011-02-14 12:32:54.960 530 Valid hostname is expected.
. 2011-02-14 12:32:54.960 Connection failed.

Reply with quote

dmalso
Joined:
Posts:
6

SSL Connection ftps connecting to 7.5 ftp server MS

2011-02-16 07:07:20 2188 2 Status: Resolving address of doeftp.doe.state.wy.us
2011-02-16 07:07:20 2188 2 Status: Connecting to 159.238.225.86:990...
2011-02-16 07:07:20 2188 2 Status: Connection established, initializing TLS...
2011-02-16 07:07:20 2188 2 Status: Verifying certificate...
2011-02-16 07:07:22 2188 2 Status: TLS/SSL connection established, waiting for welcome message...
2011-02-16 07:07:22 2188 2 Response: 220 Microsoft FTP Service
2011-02-16 07:07:22 2188 2 Command: USER doeftp.doe.state.wy.us|appealsadmin
2011-02-16 07:07:22 2188 2 Response: 331 Password required for doeftp.doe.state.wy.us|appealsadmin.
2011-02-16 07:07:22 2188 2 Command: PASS ***********
2011-02-16 07:07:22 2188 2 Response: 230 User logged in.
2011-02-16 07:07:22 2188 2 Command: SYST
2011-02-16 07:07:22 2188 2 Response: 215 Windows_NT
2011-02-16 07:07:22 2188 2 Command: FEAT
2011-02-16 07:07:22 2188 2 Response: 211-Extended features supported:
2011-02-16 07:07:22 2188 2 Response: LANG EN*
2011-02-16 07:07:22 2188 2 Response: UTF8
2011-02-16 07:07:22 2188 2 Response: AUTH TLS;TLS-C;SSL;TLS-P;
2011-02-16 07:07:22 2188 2 Response: PBSZ
2011-02-16 07:07:22 2188 2 Response: PROT C;P;
2011-02-16 07:07:22 2188 2 Response: CCC
2011-02-16 07:07:22 2188 2 Response: HOST
2011-02-16 07:07:22 2188 2 Response: SIZE
2011-02-16 07:07:22 2188 2 Response: MDTM
2011-02-16 07:07:22 2188 2 Response: REST STREAM
2011-02-16 07:07:22 2188 2 Response: 211 END
2011-02-16 07:07:22 2188 2 Command: OPTS UTF8 ON
2011-02-16 07:07:22 2188 2 Response: 200 OPTS UTF8 command successful - UTF8 encoding now ON.
2011-02-16 07:07:22 2188 2 Command: PBSZ 0
2011-02-16 07:07:22 2188 2 Response: 200 PBSZ command successful.
2011-02-16 07:07:22 2188 2 Command: PROT P
2011-02-16 07:07:22 2188 2 Response: 200 PROT command successful.
2011-02-16 07:07:22 2188 2 Status: Connected
2011-02-16 07:07:22 2188 2 Status: Retrieving directory listing...
2011-02-16 07:07:22 2188 2 Command: PWD
2011-02-16 07:07:22 2188 2 Response: 257 "/" is current directory.
2011-02-16 07:07:22 2188 2 Command: TYPE I
2011-02-16 07:07:22 2188 2 Response: 200 Type set to I.
2011-02-16 07:07:22 2188 2 Command: PASV
2011-02-16 07:07:22 2188 2 Response: 227 Entering Passive Mode (159,238,225,86,109,236).
2011-02-16 07:07:22 2188 2 Command: LIST
2011-02-16 07:07:22 2188 2 Response: 150 Opening BINARY mode data connection.
2011-02-16 07:07:23 2188 2 Response: 226 Transfer complete.
2011-02-16 07:07:23 2188 2 Command: PASV
2011-02-16 07:07:23 2188 2 Response: 227 Entering Passive Mode (159,238,225,86,109,237).
2011-02-16 07:07:23 2188 2 Command: LIST -a
2011-02-16 07:07:23 2188 2 Response: 150 Opening BINARY mode data connection.
2011-02-16 07:07:23 2188 2 Response: 226 Transfer complete.
2011-02-16 07:07:23 2188 2 Status: Directory listing successful

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: SSL Connection ftps connecting to 7.5 ftp server MS

Filezilla uses username "doeftp.doe.state.wy.us|appealsadmin". Have you specified it like that yourself? Or does it do it automatically for some reason? Can you try using such username in WinSCP?

Reply with quote

dmalso
Joined:
Posts:
6

Re: SSL Connection ftps connecting to 7.5 ftp server MS

martin wrote:

Filezilla uses username "doeftp.doe.state.wy.us|appealsadmin". Have you specified it like that yourself? Or does it do it automatically for some reason? Can you try using such username in WinSCP?

THis is how I am trying to login
open ftps://appealsadmin:Password@doeftp.doe.state.wy.us -implicit -passive -certificate="x:x:x:x:x:x:x:x:x:x:x:x:x:x:x:x:x:x:x:x:x"

If I take the bindings off the IIS ftp server, this works, filezilla doesn't, however because of other users, I have to have the bindings to doeftp.doe.state.wy.us placed on ports 21, 22, 990

Reply with quote

dmalso
Joined:
Posts:
6

Re: SSL Connection ftps connecting to 7.5 ftp server MS

I can get connected manually.
open ftps://doeftp.doe.state.wy.us -implicit -passive -certificate="x"

Prompts for user :
I type doeftp.doe.state.wy.us|user
prompts for password:

Lets me in fine.

Now how to script it thaat way

Reply with quote

Advertisement

You can post new topics in this forum