SimpleFTP
SimpleFTP copied to clipboard
Is it works with sftp?
Does this FTP client supports sftp protocol
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
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?