Hi all, I have used the built-in SFTP support in the past with a
public key and separately with a username and password. I am now
running into a situation where a server I need to connect with uses a
username, key, AND password to authenticate. (ColdFusion 9)
Unfortunately, the key and password arguments for CFFTP are mutually
exclusive, so it will allow one or the other but not both at the same
time.
When connecting to said server with a utility such as WinSCP it
connects with the username and key and then gives a note about
"additional authentication required" and prompts for a password (or
uses the saved password from settings).
I've also been attempting to use the jsch.cfc wrapper for the Java
JSch class (which ColdFusion uses under the hood anyway) without much
success (can't get that to connect at all, just gives a "packet
corrupt" error on the .connect() method).
So, I am curious if anyone else has had any experience using JSch to
connect to a server using a key and a password, or alternatively, if
someone might have code they're willing to share to script WinSCP from
ColdFusion (basically to push a file up and then get a directory
listing to verify it's been uploaded successfully)?
-Justin Scott
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:355848