czeller
09/07/2023, 3:38 PM<cfftp
action="open"
connection="testconnection"
server="172.31.25.27"
username="foo"
password="bar"
secure="true"
passive="false"
port="22"
timeout="5"
stopOnError="Yes">czeller
09/07/2023, 3:38 PMczeller
09/07/2023, 3:41 PMczeller
09/07/2023, 3:44 PMczeller
09/07/2023, 3:53 PMzackster
09/07/2023, 4:38 PMzackster
09/07/2023, 4:42 PMczeller
09/07/2023, 4:44 PMwhat's the ssh server version on the other end?This is what WinSCP shows when I connect through it:
File transfer protocol = SFTP-6
Cryptographic protocol = SSH-2
SSH implementation = 8.49 FlowSsh: Bitvise SSH Server (WinSSHD) 8.49
Encryption algorithm = AES-256 SDCTR (AES-NI accelerated)
Compression = No
try setting the env var lucee_debug_jsch=true and restartingthanks, i'll try the debug logging
czeller
09/07/2023, 4:53 PMlucee_debug_jsch, set the value to true , restarted Lucee, and re-ran the cfftp code.
I'm not seeing anything in {lucee}\tomcat\logs\catalina.2023-09-07.log Am I looking in the right place?
I do see the env var if i dump server.system.environmentczeller
09/08/2023, 4:54 PMczeller
09/08/2023, 5:13 PMvar jsch = CreateObject("java", "com.jcraft.jsch.JSch").init();
var jschConfig = CreateObject("java", "java.util.Properties").init();
jschConfig.put("StrictHostKeyChecking", "no");
jschConfig.put("PreferredAuthentications", "password");
variables.jschSession = jsch.getSession("{user}", "{host}", "{port}");
variables.jschSession.setConfig(jschConfig);
variables.jschSession.setPassword("{password}");
variables.jschSession.setTimeout(10 * 1000);
variables.jschSession.connect();
variables.jschChannel = variables.jschSession.openChannel("sftp");
variables.jschChannel.connect();zackster
09/11/2023, 9:03 AMczeller
09/11/2023, 4:03 PM