openSUSE Forums > Network/Internet » Ftp Problems

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read

Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-Jul-2009, 10:26
Puzzled Penguin
 
Join Date: Jun 2009
Posts: 9
lunchboxfl hasn't been rated much yet
Default Ftp Problems

I am having problems with FTP. When I try to ftp to the machine it seems like it wants to connect and the immediately I am disconnected. I have tried turning the firewall off as well and same thing. I get in and immediately it disconnects the session. Any help would be great. Thanks.
Reply With Quote
  #2 (permalink)  
Old 01-Jul-2009, 10:27
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,585
BenderBendingRodriguez hasn't been rated much yet
Default Re: Ftp Problems

We can't help You as you provided not enough information.
How do You connect?
Where is the ftp server?
Version of software you're using to connect to ftp?

Give as as much information as possible.
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #3 (permalink)  
Old 01-Jul-2009, 10:29
Puzzled Penguin
 
Join Date: Jun 2009
Posts: 9
lunchboxfl hasn't been rated much yet
Default Re: Ftp Problems

Sorry about that.

I use filezilla or windows to ftp to our webserver. It acts as though it connects and then immediatley disconnects.

We are running Opensuse 11.1
Reply With Quote
  #4 (permalink)  
Old 01-Jul-2009, 10:35
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,585
BenderBendingRodriguez hasn't been rated much yet
Default Re: Ftp Problems

Well, you could try connecting with ftp.
I assume you know the login and the password ??

You need to check if it's a problem with the software or the server so the first thing is to do in the command (you may have to install it):

ftp <server address>

You should see after that any messages if there is something wrong.
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #5 (permalink)  
Old 01-Jul-2009, 10:41
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,109
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: Ftp Problems

Filezilla is a FTP client, for people not aware of it.

Do you actually have a FTP server running on opensuse 11.1? Did you set one up? Or did you think it would just be there? It doesn't get installed automatically. Perhaps you really wanted SFTP which will work if you have ssh login access to the machine and the admin has not disabled the SFTP subsystem. You have to specify SFTP in filezilla, it's also a SFTP client.

SFTP is not related to FTP by the way, just that they are both file transfer protocols, that's all.
Reply With Quote
  #6 (permalink)  
Old 01-Jul-2009, 10:44
hcvv's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: Netherlands
Posts: 1,791
hcvv is on a distinguished reputation roadhcvv is on a distinguished reputation road
Default Re: Ftp Problems

Quote:
Originally Posted by lunchboxfl View Post
Sorry about that.

I use filezilla or windows to ftp to our webserver. It acts as though it connects and then immediatley disconnects.

We are running Opensuse 11.1
It is nice you call it a webserver, but beside of having that functionality it should also be an ftpserver. Which ftpserver software did you start (and how)?

What do you get with
Code:
netstat -ap | grep ftp
__________________
Henk van Velden
Reply With Quote
  #7 (permalink)  
Old 01-Jul-2009, 11:12
Puzzled Penguin
 
Join Date: Jun 2009
Posts: 9
lunchboxfl hasn't been rated much yet
Default Re: Ftp Problems

0 0 *:ftp *.* LISTEN 3615/xinetd
Reply With Quote
  #8 (permalink)  
Old 01-Jul-2009, 11:23
hcvv's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: Netherlands
Posts: 1,791
hcvv is on a distinguished reputation roadhcvv is on a distinguished reputation road
Default Re: Ftp Problems

Correct. That means that you have configured a program in xinetd.d. Maybe pure-ftp (maybe another one). And xinetd is LISTENING.

Goto /etc/xinetd.d and look for a file which has ftp in its name. Post the contents here. It may contain security restrictions you are not aware of.
__________________
Henk van Velden
Reply With Quote
  #9 (permalink)  
Old 01-Jul-2009, 11:37
Puzzled Penguin
 
Join Date: Jun 2009
Posts: 9
lunchboxfl hasn't been rated much yet
Default Re: Ftp Problems

I have two
ftp_psa
service ftp
{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/in.proftpd
server_args = -c /etc/proftpd.conf
instances = UNLIMITED
}

and

pure-ftpd
# default: off
# description: The ftpd server serves FTP connections. It uses normal, \
# unencrypted usernames and passwords for authentication. This ftpd is \
# the pure-ftpd.
# ** NOTE ** when using pure-ftpd from xinetd the arguments to control
# it's behaviour should be added here in this file in the
# "server_args" line since the configuration file
# /etc/pure-ftpd.conf is only for standalone pure-ftpd.
# The command "/usr/sbin/pure-config-args /etc/pure-ftpd.conf"
# will print the arguments needed for behaviour like standalone
# pure-ftpd.
service ftp
{
# server_args =
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/pure-ftpd
}
Reply With Quote
  #10 (permalink)  
Old 01-Jul-2009, 13:02
hcvv's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: Netherlands
Posts: 1,791
hcvv is on a distinguished reputation roadhcvv is on a distinguished reputation road
Default Re: Ftp Problems

Hm, none of them has an explicit
Code:
disable = yes/no
so whichever is used? I can not find a default for this value in
Code:
man xinetd.conf
I had another question: What did you do to start it (ftp does not run by dfault as ken_yap already explained)?.

When the default for disable is yes, both will be configured which is not really possible. When the default is no, there would not be an ftp service, but there is.

You could try to add disable statements to both, one with yes and the other with no. Find out what xinetd''s PID is with
Code:
ps -ef | grep xinetd
(make no mistakes here) and (as root) do:
Code:
kill -HUP <pid-of-xinetd>
This will force xinetd to reread its configuration. Then first check with
Code:
netstat -ap | grep ftp
if xinetd is still listening. Then try your ftp client.

Change yes and no and do it all again for checking the other server-program.
__________________
Henk van Velden
Reply With Quote
Reply
Page 1 of 2 1 2

Bookmarks


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2