LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-06-2013, 07:13 AM   #1
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 145

Rep: Reputation: Disabled
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.
 
Old 10-06-2013, 08:57 AM   #2
gregalink
LQ Newbie
 
Registered: Sep 2013
Posts: 12

Rep: Reputation: 3
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/
 
Old 10-06-2013, 10:36 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
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.
 
1 members found this post helpful.
Old 10-06-2013, 11:16 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,316

Rep: Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878
Quote:
Originally Posted by validator456 View Post
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.
 
Old 10-07-2013, 02:35 AM   #5
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 145

Original Poster
Rep: Reputation: Disabled
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.
 
Old 10-07-2013, 02:51 AM   #6
shiv garg
LQ Newbie
 
Registered: Sep 2013
Location: Amritsar
Distribution: fedora 19
Posts: 11

Rep: Reputation: Disabled
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
 
Old 10-07-2013, 03:44 AM   #7
eklavya
Member
 
Registered: Mar 2013
Posts: 619

Rep: Reputation: 136Reputation: 136
Quote:
Originally Posted by validator456 View Post
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.
 
Old 10-07-2013, 03:45 AM   #8
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 145

Original Poster
Rep: Reputation: Disabled
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?
 
Old 10-07-2013, 04:17 AM   #9
eklavya
Member
 
Registered: Mar 2013
Posts: 619

Rep: Reputation: 136Reputation: 136
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

Last edited by eklavya; 10-07-2013 at 04:19 AM.
 
Old 10-07-2013, 04:45 AM   #10
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 145

Original Poster
Rep: Reputation: Disabled
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.
 
Old 10-07-2013, 05:02 PM   #11
Stealth Bot
LQ Newbie
 
Registered: Sep 2013
Distribution: Slackware 14 | NetBSD 5.1
Posts: 11

Rep: Reputation: Disabled
@ 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

Last edited by Stealth Bot; 10-07-2013 at 05:09 PM.
 
  


Reply

Tags
android, ftp, sftp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Enabling SFTP & FTP over implicit/explicit TLS/SSL in Linux rajaniyer123 Linux - Server 5 11-08-2012 09:36 PM
SFTP/SCP with Key Authentication problem on Android Trijicon Linux - Mobile 1 06-27-2010 04:15 PM
how to create sftp user only in red hat 4 not ftp user ..only sftp user princeu28 Linux - Newbie 1 10-14-2008 09:10 AM


All times are GMT -5. The time now is 12:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration