davsclaus commented on code in PR #31005:
URL: https://github.com/apache/camel/pull/31005#discussion_r4720999899


##########
components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpComponent.java:
##########
@@ -74,11 +74,20 @@ public void setVerboseLogging(boolean verboseLogging) {
         this.verboseLogging = verboseLogging;
     }
 
+    /**
+     * The logger that the JSch instance of each session of the endpoints of 
this component logs with.
+     */
+    public Logger getJschLogger() {

Review Comment:
   Duplicate of the same note posted a few seconds earlier; resolving this 
copy, the other thread stays open.
   
   _Claude Code on behalf of davsclaus_



##########
components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpOperations.java:
##########
@@ -393,6 +393,16 @@ private Session createSession(ScpConfiguration config) {
             session = jsch.getSession(config.getUsername(), config.getHost(), 
config.getPort());
             session.setTimeout(config.getTimeout());
             session.setUserInfo(new SessionUserInfo(config));
+            if (ObjectHelper.isNotEmpty(config.getCiphers())) {
+                // on the session: JSch.setConfig would change the ciphers of 
every JSch session in the JVM
+                LOG.trace("Using ciphers: {}", config.getCiphers());
+                session.setConfig("cipher.s2c", config.getCiphers());
+                session.setConfig("cipher.c2s", config.getCiphers());
+            }
+            if (config.getPassword() != null) {
+                // JSch answers a keyboard-interactive password prompt only 
with the password of the session
+                session.setPassword(config.getPassword());

Review Comment:
   Duplicate of the same note posted a few seconds earlier; resolving this 
copy, the other thread stays open.
   
   _Claude Code on behalf of davsclaus_



##########
components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpComponent.java:
##########
@@ -74,11 +74,20 @@ public void setVerboseLogging(boolean verboseLogging) {
         this.verboseLogging = verboseLogging;
     }
 
+    /**
+     * The logger that the JSch instance of each session of the endpoints of 
this component logs with.

Review Comment:
   Duplicate of the same note posted a few seconds earlier; resolving this 
copy, the other thread stays open.
   
   _Claude Code on behalf of davsclaus_



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to