I want to be able to retrieve the host key of a remote SSH host using Java code. Is there any library that does this, I looked into JSch but couldn’t find what I wanted. I am aware that I can run the terminal command ssh-keyscan <hostname> through Java, but I want this to be the last resort. Seeking better
Tag: sftp
How to get the file from service-activator Message object in listener class
I need to pass the file to service layer which i am receiving in SFTP path. below is configuration and i am seeing the message receiving in my service-activator like GenericMessage [payload=com….
Read file extended attributes of files on SFTP server with JSch
I want to read file extended attributes using com.jcraft.JSch 0.1.55 (the file is on SFTP server). I know that class SftpATTR actually does have a method but in my case it returns null. I see that in this code the last if-statement is responsible for reading extended attributes but it seems to me that it always evaluates to false, because
Apache Mina SFTP SftpSubsystem.Factory()
I am trying to setup a simple SFTP server using Apache Mine SSHD v1.2.0. I have looked at several examples on the web E.g. here, here and here. However they all have the same line in common which I cannot get NetBeans to resolve. NetBeans tells me that it cannot find Factory in SftpSubsystem. The line in question looks as
Using SFTP in Java, How do I transfer a file from one folder to another? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 years ago. The community reviewed whether to reopen this question 23 days ago and left it closed: Not suitable for this site We don’t allow
How to secure an SFTP password in an APK file
I’m developing an Android app which has a service to upload images/files to a FTP server. To make that possible, the app on the device has to log in into the FTP server before sending data. And here comes my problem. The user does not need to / have to know about the FTP login data. Only the app itself.
JSchException: Algorithm negotiation fail
I am trying to connect to remote sftp server over ssh with JSch (0.1.44-1) but during session.connect(); I am getting this exception: Logs from JSch: I am able to log in to remote server with linux sftp command. I was trying to find any kind of clue in the internet but I failed. Debug output from linux sftp command: Answer