It still doesn’t work w/o “passive”.
I guess I was just trying stuff to see if it’s going to help. I think it just highlights the last line before the end of the tag.
I just edited the error message to avoid confusion.
I haven’t had the chance to read this thread here, but in general everything is supposed to function “as advertised”. If it does not, then please file a bug in JIRA
I am first trying to determine whether this is a bug or I am not using the tag correctly or missing something.
Will file a bug once I am confident that I am not making a mistake. First wanted to hear if others have used the <cfftp> successfully to establish an SSH connection…
As for the fingerprint, Lucee compares it against JSCH’s getHostKey().getFingerprint() method, which is defined as:
returns the key’s fingerprint (i.e. a lowercase hexadecimal representation
of the MD5 of the key.)
Something like this
Will get it - basically you can use ssh-keyscan on an OpenSSH machine to
get the host key in base64 mode. You’d need to decode the base64, and
re-encode with hex.
Also note that you’ll get different fingerprints for different hostkey
algorithms - i.e. ED25519 is different from RSA. (and HOPEFULLY you don’t
have DSS)
I’ve been converting a standard FTP procedure using cfftp to SFTP by switching on the secure attribute and it seems to work ok.
Makes no difference if I use script or tags.
Specifying port=22 isn’t necessary as this is the default when using the secure attribute.
Perhaps there is something unusual about the server you are connecting to, Marianna? Is there anything in the Session settings or Advanced settings for the working connection in WinSCP that might give you a clue?
And just to make sure all bases are covered: I take it you’ve double/triple checked the username/password attributes are exactly the same as in WinSCP?
Also, what version of Java are you using with Lucee?