GabriRuflex commented on issue #847:
URL: https://github.com/apache/mina-sshd/issues/847#issuecomment-3441540433
Thanks @tomaswolf for your quickly response.
This is my implementation:
```
Map<String, Object> envParameters = MapEntryUtils.MapBuilder.<String,
Object>builder()
.put(CommonModuleProperties.SESSION_HEARTBEAT_TYPE.getName(),
SessionHeartbeatController.HeartbeatType.IGNORE)
.put(CommonModuleProperties.SESSION_HEARTBEAT_INTERVAL.getName(),
HEARTBEAT.toMillis())
.put(CoreModuleProperties.AUTH_METHODS.getName(),
List.of(UserAuthPasswordFactory.INSTANCE))
.put(SftpModuleProperties.AUTH_TIME.getName(), SSH_TIMEOUT.toMillis())
.put(SftpModuleProperties.CONNECT_TIME.getName(),
SSH_TIMEOUT.toMillis())
.put(SftpModuleProperties.SFTP_CHANNEL_OPEN_TIMEOUT.getName(),
SFTP_TIMEOUT.toMillis()).build();
...
FileSystem fileSystem = FileSystems.newFileSystem(
createFileSystemURI(remotehost, remoteport, username, password),
envParameters, this.getClass().getClassLoader())
```
But unfortunately SSHD seems to ignore the selected auth methods.
Is this implementation correct? Am I missing something?
Thanks!
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]