|
#1
|
||||
|
||||
host key file
I'm trying to run a script for a client. When I run in the GUI I can use the host key file and login just fine. It seems when I'm scripting it will not find the PVT file.
I've tried the /f without success. Thanks in advance! Code:
"C:\Program Files\VanDyke Software\SecureFX\sfxcl.exe" /Move /NOPROMPT /OVERWRITE always /TRANSFERTYPE binary /RETRYCOUNT 0 /ACCEPTHOSTKEYS /LOG C:\*******_SFTP\Log\Download_20160121171046.txt ftps://User:**************@ftp.something.net//User/Outbound/999/*.* C:\********_SFTP 2016-01-21 17:10:46, 00001: sfxcl version 7.2.6.606 (Official Release - August 19, 2014) 2016-01-21 17:10:46, 00001: Session 00001 established for transfer from ftps://User:**************@ftp.something.net//User/Outbound/999/*.* 2016-01-21 17:11:07, 00001: Control connection could not be established. 2016-01-21 17:11:07, 00001: (0x2746) An existing connection was forcibly closed by the remote host. |
#2
|
|||
|
|||
Hi mwdenko,
You are using FTPS for the protocol. The SFXCL /F command-line option doesn't have any bearing on the Windows certificate store or the Windows user context. SecureFX/SFXCL uses the Windows certificate store to validate the server's certificate when using the FTPS protocol. You will need to make sure that the Windows user context that is being used to run SFXCL has the correct certificate in the Windows certificate store so that SFXCL can validate the certificate that the remote server is presenting. Does this help you solve the connection problem? |
#3
|
||||
|
||||
Thanks for the quick response!
I'm not sure I follow. When I run using the SecureFX program I can get in and download files. When I script it I don't get any further than the initial connection. the /f was just a SWAG after reading some of the posts on the forum. The same windows user is logged in for both attempts. |
#4
|
|||
|
|||
Hi mwdenko,
Thanks for the update. Based on the new information, it isn't clear from the SFXCL log file why the connection is failing. Since you are successful when using SecureFX, I would suggest using the session that you have with SFXCL. For example: sfxcl /S "session name" /User/Outbound/999/*.* C:\********_SFTPDoes this help you successfully connect when using SFXCL? |
#5
|
||||
|
||||
That worked!
![]() |
#6
|
||||
|
||||
One more question. How do I pass the password in this instance?
I had the GUI open when I tested and it went right through and connected. I closed the GUI and now it won't connect. |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|