LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ftp and sftp - linux and android (https://www.linuxquestions.org/questions/linux-newbie-8/ftp-and-sftp-linux-and-android-4175479779/)

validator456 10-06-2013 06:13 AM

ftp and sftp - linux and android
 
I cannot wrap my head around one topic. How to setup a ftp- or sftp-server in order to communicate between my computer and my Android-phone. I want to communicate back and forth.

I can work with ftp to access files on a remote server. But to create a server on my own computer....like I said, I cannot wrap my brains around it.

gregalink 10-06-2013 07:57 AM

ftp and sftp - linux and android
 
Depending on what distribution your running and needs there are a few different choices. This below website has some good walkthroughs for setting up ftp servers and covers a number of different distributions. http://www.server-world.info/en/

unSpawn 10-06-2013 09:36 AM

FTP requires a FTP daemon like Vsftpd or proftpd. FTPS is FTP-over-SSL for which you would use your FTP daemon and a SSL certificate. SFTP and SCP are SSH protocols requiring the OpenSSH daemon. Both Vsftpd and proftpd come with documentation how to set up a FTP server, best start reading those first IMHO.

TB0ne 10-06-2013 10:16 AM

Quote:

Originally Posted by validator456 (Post 5040877)
I cannot wrap my head around one topic. How to setup a ftp- or sftp-server in order to communicate between my computer and my Android-phone. I want to communicate back and forth.

I can work with ftp to access files on a remote server. But to create a server on my own computer....like I said, I cannot wrap my brains around it.

Not sure why you're so confused...there are MANY how-to guides that are very easy to follow for pretty much any Linux distribution. You don't say what you're using, but if you just want to run a basic FTP server on your home LAN, that's easily done. Chances are you've either got proftp or vsftp already on your system. You may just have to start the service to have an FTP server running. Again, without knowing what version/distro of Linux you have, we can't tell you what you might have to modify/install/run to get things going.

On the Android side of things, I can personally recommend ES File Explorer...it not only supports FTP, but SSH/SFTP, but things like Dropbox and shared Windows drives too. Should just have to put in the address of your Linux system, enter your name/password, and you're done.

validator456 10-07-2013 01:35 AM

I have Crunchbang Linux on my computer. That is a Debian-version.
I have ES File Explorer on my Android-phone.
I will start reading the proftpd-documentation.

shiv garg 10-07-2013 01:51 AM

connect your phone usimg a wifi hotspot or other way... i mean establish a network between your phone and computer...
then install any ftp deamon like xampp or vsftpd etc...
start ftp server
you can acess files using ip of your computer on your phone..
other configuration like sharing etc you can configure by your own

eklavya 10-07-2013 02:44 AM

Quote:

Originally Posted by validator456 (Post 5041300)
I have Crunchbang Linux on my computer. That is a Debian-version.
I have ES File Explorer on my Android-phone.
I will start reading the proftpd-documentation.

If you have ES file explorer on your Android, You can connect to ftp and sftp both servers using your phone.

There is a LAN tab there, here you can see the share devices of your Local Area Network.
Just click on New, fill the details like IP of the server, username & password and you can see the shared files & directories of server.

Then There is a FTP tab there, here you can add a ftp server and a sftp server. What are these two, you have understood reading above posts.
If you want to add ftp, select ftp or if you want to add sftp, select sftp. Now fill the IP, username & password. Now you can access files & directories of defined server according to given permissions.

The first difference you can find the port number between the two. When you will fill the details, you can see port 21 for ftp and port 22 for sftp. It is the default ports for these two.

Now here you can upload and download files on the server using ES file explorer. Here ES file explorer works as client and it is used for transfer files between client and server.

validator456 10-07-2013 02:45 AM

error-message
 
I have followed this tutorial: http://ubuntuforums.org/showthread.php?t=79588

I get this error-message after restarting the server:
Code:

proftpdprobe proftpd[5056]: mod_tls_memcache/0.1: notice: unable to register 'memcache' SSL session cache: Memcache support not enabled
.

I searched for it on the internet and found this page: http://www.proftpd.org/docs/howto/Memcache.html
My question is: where is libmemcached located on my system? And do I have to follow the instructions on above-mentioned page?

eklavya 10-07-2013 03:17 AM

If you see your mentioned page, you will find your problem in last question.
Code:

Question: Why do I see the following error when proftpd starts up?

mod_tls_memcache/0.1: notice: unable to register 'memcache' SSL session cache: Memcache support not enabled 

Answer: This message means that your proftpd server has mod_tls_memcache built and loaded, but your proftpd server was not built with memcache support (i.e. the --enable-memcache configure option was not used when compiling proftpd).

The above is not a fatal or worrisome error; it is merely pointing out that some of your modules want to use a feature that was not enabled.

Now if you want to enable the feature, that is on same page too.
Code:

Enabling Memcache Support for ProFTPD
OK, so you are interested enough in the possibilities that memcached offers that you want to try it out. Excellent! To do this, you will first need to make sure to build your proftpd executable using the --enable-memcache configure option. The --enable-memcache configure option automatically adds the mod_memcache module to your proftpd build.

The mod_memcache module uses the libmemcached library for talking to memcached servers. If your libmemcached library is installed in a non-standard location, you may need to tell the ProFTPD build system where to find the libmemcached header files and libraries using the --with-includes and --with-libraries configure options.

There are other modules which make use of memcached support when available, such as mod_tls_memcache. Thus to take advantage of modules like this, putting everything together, your configure command might look like this:

  $ ./configure --enable-memcache \
    --with-modules=...:mod_tls_memcache:... \
    --with-includes=/path/to/libmemcached/include \
    --with-libraries=/path/to/libmemcached/lib

If still you are not able to do this and little curious about libmemcached, read this.
http://www.proftpd.org/docs/modules/mod_memcache.html

validator456 10-07-2013 03:45 AM

I have given up. Setting up a ftp-server just takes too much time. Maybe another time.

Thank you for your answers and your patience.

Stealth Bot 10-07-2013 04:02 PM

@ validator456

Try Airdroid from the google play store. Airdroid will allow you to transfer files both ways using just a web browser. No need to configure any servers.

But Airdroid does more than just file transfers.

Airdroid video overview
http://www.youtube.com/watch?v=bcQXmVcpCFk

Hope this helps


All times are GMT -5. The time now is 10:14 AM.