Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi friends,
I am using fedora 13. While doing ftp to this box i m getting following.
C:\xxx>ftp 192.168.1.2
Connected to 192.168.1.2.
and after some time connection gets close but is is not giving any login prompt.Please help me to sort out this problem. please find my my vsftpd.conf file as follows.
Did you get any error message when the connection times out. Did you try to telnet Fedora machine from Windows machine on port 21. You can use the following command for it:
Code:
telnet ip_address_of_ftp_server 21
Did you check selinux status on your Fedora machine? You can check it using the following command:
Code:
sestatus
Let us know the output of the above two commands and we can take it from there.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
I can't recall exactly how Windows FTP works but did you try:
C:\xxx>ftp <your username on the ftp server>@192.168.1.2
That may force it to ask for your password. Otherwise I wonder if it's trying to pass your Windows username across which may either be different or not be communicated correctly.
When I tried to do telnet using port 21 , it has directed to me a blank screen.But I was unable to type any command there ie there is blinking prompt but typing anything gets replaced by blank characters.
SELinux status for my machine is:disabled
[root@Virus ~]# sestatus
SELinux status: disabled
@T3RM1NVT0R I have tried to do following and output was as below.
C:\>ftp -v 192.168.1.2
Connection closed by remote host.
C:\>ftp 192.168.1.2
Connected to 192.168.1.2.
Connection closed by remote host. (after 2-3 minute)
C:\>ftp oracle@192.168.1.2
Unknown host oracle@192.168.1.2. (I think this is taking oracle@192.168.1.2 as hostname or IP)
One thing I also want to tell you that I am using bridge networking using Virtual Box. I am able to connect my Fedora13 (Host OS) from my guest OS (Windows XP) using SSH. Also I am able to connect linux machine using Perl script SSH2 module.But I want to FTP using perl script. It error out. Then I checked whether I can FTP simply through DOS, I was unable to do.Then I have posted it here..Please help me to do FTP through DOS, my all problems will automatically get resolved.
Last edited by gaurav pant; 01-02-2012 at 09:00 AM.
So you have Fedora installed on your physical machine and you have installed Windows XP as guest on the same machine using Virtual Box. So basically your Windows Machine is a virtual machine and you are trying to FTP your Fedora machine from your Windows machine. Is that correct?
Here is the things we can check. Are you able to FTP your fedora machine from itself? What happens if you trying accessing FTP server from browser?
Tell us the IP address of both client and the server.
Thanks a lot for all of your help.Finally I got the solution.
@T3RM1NVT0R- you are right. Windows XP is my guest (virtual OS) and Fedora is host and I am trying to ftp Fedora OS from Windows XP.
The problem is that Fedora firewall is blocking 21 port.I have enabled FTP port there(System->Administration->Firewall).
After doing it I was getting FTP user prompt but still not able to authenticate even after giving correct password.
C:\Documents and Settings\Gaurav Pant>ftp 192.168.1.2
Connected to 192.168.1.2.
220 (vsFTPd 2.3.4)
User (192.168.1.2none)): oracle
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp> bye
Aborting any active data connections...
after this I have made change to my /etc/vsftpd/vsftpd.conf
#anonymous_enable=NO
local_enable=YES
dirmessage_enable=YES
connect_from_port_20=YES
xferlog_enable=YES
xferlog_file=/var/log/vsftpd/vsftpd.log
nopriv_user=nobody
#chroot_list_enable=YES
#chroot_local_user=YES
background=YES
listen=YES
ls_recurse_enable=YES
write_enable=YES
pam_service_name=vsftpd
userlist_enable=YES
i have commented below two lines.
#chroot_list_enable=YES
#chroot_local_user=YES
because I was getting below error when I have uncommented these two lines.
C:\Documents and Settings\Gaurav Pant>ftp 192.168.1.2
Connected to 192.168.1.2.
220 (vsFTPd 2.3.4)
User (192.168.1.2none)): oracle
331 Please specify the password.
Password:
500 OOPS: could not read chroot() list file:/etc/vsftpd/chroot_list
500 OOPS: priv_sock_get_result
Connection closed by remote host.
So finally we have solution.Thanks to all to help me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.