SimpleFTP icon indicating copy to clipboard operation
SimpleFTP copied to clipboard

Is it works with sftp?

Open kasim1011 opened this issue 5 years ago • 2 comments

Does this FTP client supports sftp protocol

kasim1011 avatar Mar 12 '19 12:03 kasim1011

Not currently, but you can add it quickly by adding the following line in the file app/src/main/java/com/paulds/simpleftp/data/repository/FtpRepository.java, after the line 109 :

client.setSecurity(FTPClient.SECURITY_FTPS);


If you want to implement it properly in order to manage both FTP and SFTP servers on the same device, you should add a boolean "sftp" in the FtpServer entity (app/src/main/java/com/paulds/simpleftp/data/entities/FtpServer.java), then test if the property is true in the FtpRepository. You will also have to add a checkbox/switch to enable/disable the SFTP functionality in the server form. See:

  • app/src/main/java/com/paulds/simpleftp/presentation/model/FtpServerViewModel.java
  • app/src/main/java/com/paulds/simpleftp/presentation/activities/EditServerActivity.java
  • app/src/main/res/layout/activity_edit_server.xml

Paul-DS avatar Mar 12 '19 15:03 Paul-DS

Hey @Paul-DS, I had tried to run your repo and I had created a new connection with my Ubuntu PC. The mobile and my PC both are in the same network so can FTP work or not? and if it will work, how? can you please explain to me?

mustafal avatar Mar 16 '19 09:03 mustafal