Skip to content

Commit

Permalink
Merge pull request #213 from bcgov/feature/upgradeToSftp6
Browse files Browse the repository at this point in the history
upgrade To Sftp 6
  • Loading branch information
jianmingtu authored Jan 29, 2024
2 parents 78461a2 + d844a6b commit 6a05bc5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public SessionFactory<SftpClient.DirEntry> sftpSessionFactory() throws InvalidCo
Resource resource = resourceLoader.getResource("file:"+properties.getKnownHostFile());
logger.info("SFTP Known Hosts: length = {}", resource.contentLength());
logger.info("SFTP Known Hosts: content = {}", resource.getContentAsString(Charset.defaultCharset()));
factory.setPrivateKey(resource);
factory.setKnownHostsResource(resource);
}

CachingSessionFactory<SftpClient.DirEntry> cachingSessionFactory = new CachingSessionFactory<>(factory);
Expand Down

0 comments on commit 6a05bc5

Please sign in to comment.