Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Guest

martin wrote:

Anonymous wrote:

It seems it has been adressed before and set as resolved. Seems not resolved.

Why do you think so?


Because it still doesn't work.

Quote from the forum thread :
-----------------
When using command line: winscp.exe [mysession] to try to do FTP SSL, I get the message:
+++ Start of message
If you trust this certificate, press Yes. To connect without storing certificate
, press No. To abandon the connection press Cancel.
Continue connecting and store the certificate?
(Y)es, (N)o, C(a)ncel, (C)opy Key: Cancel
Connection failed.
+++ End of message
So, how do I reply to this message to allow for the certificate?

------------------------------------------------
There is no option that the response would be YES instead of cancel.
In other threads this has been asked before.
let the scripter decide how secure it should be.
martin

Anonymous wrote:

It seems it has been adressed before and set as resolved. Seems not resolved.

Why do you think so?
Guest

It seems it has been adressed before and set as resolved. Seems not resolved.

Tracker
martin

Anonymous wrote:

I tried with the -certificate parameter. But i don't have a key for it. If i manually connect i only get a window that tells me to accept the certificate (no key input required). its ftp with -implicit.

But the windows shows you the certificate fingerprint that you need to pass to the -certificate parameter in the script.
Guest

well it's windows api createprocess not the .NET on. But i figured it out. I had to give 2 flags in the Flags parameter : SW_HIDE and wShowWindow=STARTF_USESHOWWINDOW.

I tried with the -certificate parameter. But i don't have a key for it. If i manually connect i only get a window that tells me to accept the certificate (no key input required). its ftp with -implicit.

I don't know if the -certificate works without a supplied key.
martin

Re: Mnimize or hide console winscp

Anonymous wrote:

I am working with the WinSCP.com app. Works great with the redirecting of input/output. Only thing
that isn't possible is to minimize/hide the console window. If i set the minimize in my own create process it doesn't work and there is no startup option for it (i have read the documentation).
So this would be a great enhancement if added.

If you are running WinSCP from .Net code, use Process.StartInfo.CreateNoWindow property. See https://winscp.net/eng/docs/guide_dotnet#csharp_example

Second is the "Batch/Confirm option"
It doesn't have an option to do automatic confirms to accept a ssl-certificate automatic for instance. It only defaults to "cancel" or "ignore" with Batch on and confirm on.
So something like "option batch force" to respond with "yes" instead of "cancel" or "ignore"

https://winscp.net/eng/docs/scripting#hostkey
Guest

Mnimize or hide console winscp

Hi,

Great Prog!!.....
I am working with the WinSCP.com app. Works great with the redirecting of input/output. Only thing
that isn't possible is to minimize/hide the console window. If i set the minimize in my own create process it doesn't work and there is no startup option for it (i have read the documentation).
So this would be a great enhancement if added.

Second is the "Batch/Confirm option"
It doesn't have an option to do automatic confirms to accept a ssl-certificate automatic for instance. It only defaults to "cancel" or "ignore" with Batch on and confirm on.
So something like "option batch force" to respond with "yes" instead of "cancel" or "ignore"