Hi I want to use SFTP in my android project. Can anybody tell me if android [code]already have SFTP library?? Or i have to implement it. If anybody have already done SFTP client in android then please guide me. Thanks in Advance.
+1
A:
I use andFTP for sftp transfers but it's not open source.
You can check connectBot. There is an issue about sftp transfers.
Macarse
2010-02-12 11:07:31
Hi MacarseThnk you your reply.I went through connectbolt SSH open source client on android.Now i want to ask if i can integrate FTP and connectbolt SSH to form my SFTP?? How much feasible it would be considering that i dont know much of internals of SSH. Thanks in advance.
Mr. Kakakuwa Bird
2010-02-15 05:44:44
I think they are going to add it, but it's not there yet. Post a comment on the issue and ask them out.
Macarse
2010-02-15 15:22:55
+2
A:
Yes, edtFTPj/PRO is a commercial Java library that works on Android and supports SFTP (as well as FTP and FTPS).
Bruce Blackshaw
2010-02-15 11:58:02
A:
AndFTP supports SFTP and Intents too so you can run a transfer with the following Intent (i.e. upload):
Intent intent = new Intent();
intent.setAction(Intent.ACTION_PICK);
// FTP URL (Starts with ftp://, sftp:// or ftps:// followed by hostname and port).
Uri ftpUri = Uri.parse("sftp://yourftpserver.com");
intent.setDataAndType(ftpUri, "vnd.android.cursor.dir/lysesoft.andftp.uri");
// FTP credentials (optional)
intent.putExtra("ftp_username", "anonymous");
intent.putExtra("ftp_password", "[email protected]");
//intent.putExtra("ftp_keyfile", "/sdcard/dsakey.txt");
//intent.putExtra("ftp_keypass", "optionalkeypassword");
// FTP settings (optional)
intent.putExtra("ftp_pasv", "true");
//intent.putExtra("ftp_resume", "true");
//intent.putExtra("ftp_encoding", "UTF8");
// Upload
intent.putExtra("command_type", "upload");
// Activity title
intent.putExtra("progress_title", "Uploading files ...");
intent.putExtra("local_file1", "/sdcard/subfolder1/file1.zip");
intent.putExtra("local_file2", "/sdcard/subfolder2/file2.zip");
// Optional initial remote folder (it must exist before upload)
intent.putExtra("remote_folder", "remotefolder/subfolder");
startActivityForResult(intent, 1);
lysesoft
2010-04-11 15:36:10