LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-23-2010, 11:00 AM   #1
CircleDown
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Rep: Reputation: 0
Setting Up FTP client/server with vsftpd in Ubuntu 9.04


Hi All,

I currently have 4 Linux Servers installed in a test lab that I have built for my job. I am in the process of trying to get FTP to work (vsftpd is installed).

I don't need an FTP GUI or anything, I can use terminal (and I don't have an internet connection, so I probably can't get one anyway).

I bring up the terminal and I type FTP and I am presented with a few problems:

1. If I try to FTP to one of the other Linux Servers on the network, I get "No route to host" error.

2. If I try to FTP to the Server I am sitting on, then I am able to successfully connect, obviously. But when I do an "ls," I don't see any available files.

I am assuming this is because I have not yet set up a folder for it (i.e. Windows uses "ftproot" folder).

Can someone assist me in setting up vsftpd? Any help is most appreciated.

I am running Ubuntu Gnome 9.04 Jaunty Jackalope for a GUI, and I am running Ubuntu Server underneath (Yes I need a GUI for what I am using the server for).

Last edited by CircleDown; 02-23-2010 at 11:09 AM.
 
Old 02-23-2010, 11:18 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,051

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
i would first recommend not using ftp since it is antiquated and insecure.

instead consider sftp/ scp which work over ssh

make sure the ssh server is running
Code:
sudo service sshd status
for scp the command line is usually something like
Code:
scp <user-name>@<server>:</path/to/file> <user-name>@<server>:</path/to/file>
1. i dont know what to tell you; if the road doesnt exist you cant drive from point a to point b.
2. this is probably because the user you log in as doesnt have any files in there $HOME directory.
 
Old 02-23-2010, 11:31 AM   #3
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
What exactly are you typing in to the ftp console ?
A normal login would be
ftp <ipaddress>
or
ftp <domain.com>

Are you logging in as a user ?
Are the firewalls open to port 21 on the other machines ?
How have you assigned the ip addresses ?

Can you access the other machines over the network at all ?

If you ftp to another machine, i.e.

ftp 192.168.0.2

you will get a prompt asking for a username
enter a username that exists on that machine (192.168.0.2) and you get a prompt asking for a password

enter a password successfully and you get a few messages then

ftp>

type ls and you get a listing of that users files in their home directory.
(if you've created users on the other machines there is usually something in their home folder.
Try ls -al )

type pwd and it tells you where you are.


However, if you just type ftp without an address you will get a prompt
>ftp

You then have to type
open <ip_address>

and do as I described above.

Sorry if this is too basic, but it's hard to know how much you already know.

regards

Alan
 
Old 02-23-2010, 07:01 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,258

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
You may want to reference this http://vsftpd.beasts.org/vsftpd_conf.html
 
  


Reply


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
Help on setting up multiple FTP users on Ubuntu Server 9.04 with proFTPD Jamie Kugelmann Linux - Server 1 12-23-2009 03:31 AM
Help setting up an FTP Server on Ubuntu Server 9.10 Jamie Kugelmann Linux - Server 10 08-05-2009 04:49 AM
Ubuntu Server FTP issue (also not working on Desktop) - vsftpd Diablosblizz Linux - Server 0 08-23-2008 07:22 PM
Setting up secure FTP (trying vsftpd on RHEL 4) Xera Linux - General 11 11-07-2006 06:51 PM
ubuntu client to connect to vsftpd server icga Linux - Software 7 02-08-2006 08:22 PM


All times are GMT -5. The time now is 05:26 AM.

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