~jan0sch/smederee

Showing details for patch a2b0f3c3bb1fcc1778870da633457f7a456a0d76.
2022-10-22 (Sat), 7:54 AM - Jens Grassel - a2b0f3c3bb1fcc1778870da633457f7a456a0d76

SSH: Disable SFTP support for now.

Summary of changes
1 files modified with 2 lines added and 2 lines removed
  • modules/hub/src/main/scala/de/smederee/ssh/SshServer.scala with 2 added and 2 removed lines
diff -rN -u old-smederee/modules/hub/src/main/scala/de/smederee/ssh/SshServer.scala new-smederee/modules/hub/src/main/scala/de/smederee/ssh/SshServer.scala
--- old-smederee/modules/hub/src/main/scala/de/smederee/ssh/SshServer.scala	2025-02-02 00:50:01.323355686 +0000
+++ new-smederee/modules/hub/src/main/scala/de/smederee/ssh/SshServer.scala	2025-02-02 00:50:01.327355693 +0000
@@ -145,8 +145,8 @@
       new VirtualFileSystemFactory(darcsConfiguration.repositoriesDirectory.toPath)
     )
     // Add our custom command factory which must provide darcs and scp functionality.
-    val sftpSubsystem = new SftpSubsystemFactory.Builder().build()
-    server.setSubsystemFactories(Collections.singletonList(sftpSubsystem))
+    // val sftpSubsystem = new SftpSubsystemFactory.Builder().build()
+    // server.setSubsystemFactories(Collections.singletonList(sftpSubsystem))
     val darcsCommand = new DarcsSshCommandFactory(darcsConfiguration)
     server.setCommandFactory(darcsCommand)
     server