Hi again,

ok, disabling the deSetAttributes by using

"
                SftpSubsystemFactory ssf = new SftpSubsystemFactory.Builder()
                .withFileSystemAccessor(new SftpFileSystemAccessor() {
                        public SeekableByteChannel openFile(ServerSession 
session, SftpEventListenerManager subsystem,
                                        Path file, String handle, Set<? extends 
OpenOption> options, FileAttribute<?>... attrs)
                                        throws IOException {
                                System.out.println("Open: " + file + " " + options + 
" " + attrs);

                                return FileChannel.open(file, options, 
IoUtils.EMPTY_FILE_ATTRIBUTES);
                        }
                }).build();
namedFactoryList.add(ssf);
sshd.setSubsystemFactories(namedFactoryList);

"

does indeed help. What is the purpose of calling doSetAttributes()?

Best regards,
Michael Fritscher

--
ZfT - Zentrum für Telematik e.V.
Michael Fritscher
Magdalene-Schoch-Straße 5
97074 Würzburg
Tel: +49 (931) 615 633 - 57
Fax: +49 (931) 615 633 - 11
Email: [email protected]
Web: http://www.telematik-zentrum.de

Vorstand:
Prof. Dr. Klaus Schilling, Prof. Dr. Andreas Nüchter,  Hans-Joachim Leistner
Sitz: Gerbrunn
USt.-ID Nr.: DE 257 244 580, Steuer-Nr.:  257/111/70203
Amtsgericht Würzburg, Vereinsregister-Nr.: VR 200 167

<<attachment: michael_fritscher.vcf>>

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to