Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
09-28-2005, 07:39 AM
|
#1
|
LQ Newbie
Registered: Aug 2005
Location: chennai
Posts: 3
Rep:
|
Unable to send or retrive file using vsftpd
Hai
I am working in c networking in MS-DOS to connect with VSFTPD[COLOR=crimson] i am able to establish connection with it but i am unable to send file or retrive a file.
when i tried with windows cmd prompt telnet application to connect with vsfptd i get the same problem
i connected with ftp server as TELNET HOSTNAME 21
& got error as follows
220 (vsFTPd 1.1.3)
USER postgres
331 Please specify the password.
PASS postgres
230 Login successful. Have fun.
PORT 192,168,2,4,44,100
200 PORT command successful. Consider using PASV.
RETR jjj.txt
150 Opening BINARY mode data connection for jjj.txt (63 bytes).
426 Failure writing network stream.
PORT 192,168,2,4,44,101
200 PORT command successful. Consider using PASV.
STOR socket.txt
150 Ok to send data.
226 File receive OK.
421 Timeout.
if anyone knows solution please help me
|
|
|
09-28-2005, 10:43 AM
|
#2
|
Member
Registered: Sep 2005
Distribution: Fedora Core 2
Posts: 34
Rep:
|
first off, vsftp, stand for very secure ftp
command line access me be problematic, because it is designed for an ftp client, (a GUI)
ive had goos results with vsftp in a normal windows env using wsftp client.
if you are lokking for flexibilty to use command kine access (especialy using telnet)
(telnet access has been known to be used with malicious intent)
(so a program aimed at security, would most often limit, if not block access from port 23)
(were refering to very secure ftp)
try installing an older version of ftp on linux and set your /etc/hosts.allow and /etc/hosts.deny to accept ftp
also make sure the folders you are accessing are set to 755 permissions, if 755 dosnt work try 777
however you will be sacrificing security, but if security is not a concern, install an earlier version of plain old "ftp" on linux
|
|
|
09-28-2005, 10:44 AM
|
#3
|
Member
Registered: Sep 2005
Distribution: Fedora Core 2
Posts: 34
Rep:
|
sorry for typos
|
|
|
09-29-2005, 02:21 AM
|
#4
|
LQ Newbie
Registered: Aug 2005
Location: chennai
Posts: 3
Original Poster
Rep:
|
i tried with older older version stil i get same problem
Hai thanks for your response
I tried with older version of ftp but still i face same problem message it got is as follows in telnet screen
220 yogasoft.co.in FTP server (Version wu-2.4.2-VR17(1) Mon Apr 19 09:21:53 EDT 1999) ready.
USER postgres
331 Password required for postgres.
PASS postgres
230-Please read the file README
230- it was last modified on Fri Aug 19 18:00:31 2005 - 41 days ago
230 User postgres logged in.
pwd
257 "/usr/local/pgsql" is current directory.
port 192,168,2,4,44,102
200 PORT command successful.
retr sample.txt
pasv
227 Entering Passive Mode (192,168,2,12,8,114)
retr sample.txt
425 Can't open data connection.
port 192,168,2,4,45,102
200 PORT command successful.
stor socket.txt
But when i tried with a gui ftp client(CORE FTP) it is working properly and commands issued by it as follows
welcome to Core FTP, release ver 1.3c, build 1423.01 (U) -- © 2003-2005
WinSock 2.0
Mem -- 259,888 KB, Virt -- 2,097,024 KB
Started on Thursday September 29, 2005 at 12:22:PM
Connect socket #496 to 192.168.2.12, port 21...
220 yogasoft.co.in FTP server (Version wu-2.4.2-VR17(1) Mon Apr 19 09:21:53 EDT 1999) ready.
USER postgres
331 Password required for postgres.
PASS **********
230-Please read the file README
230- it was last modified on Fri Aug 19 18:00:31 2005 - 41 days ago
230 User postgres logged in.
SYST
215 UNIX Type: L8
Keep alive off...
PWD
257 "/usr/local/pgsql" is current directory.
PORT 192,168,2,4,114,191
200 PORT command successful.
LIST
150 Opening ASCII mode data connection for /bin/ls.
226 Transfer complete.
CWD /usr/local/pgsql/ppp
550 /usr/local/pgsql/ppp: Not a directory.
CWD /usr/local/pgsql
250 CWD command successful.
Transferred 10,693 bytes in 0.172 seconds
DELE socket.txt
250 DELE command successful.
PORT 192,168,2,4,114,192
200 PORT command successful.
LIST
150 Opening ASCII mode data connection for /bin/ls.
226 Transfer complete.
CWD /usr/local/pgsql/ppp
550 /usr/local/pgsql/ppp: Not a directory.
CWD /usr/local/pgsql
250 CWD command successful.
Transferred 10,626 bytes in 0.172 seconds
TYPE I
200 Type set to I.
PORT 192,168,2,4,114,193
200 PORT command successful.
RETR sample.txt
150 Opening BINARY mode data connection for sample.txt (6 bytes).
226 Transfer complete.
sample.txt - 6 bytes transferred
MDTM sample.txt
213 19990104205617
Transfer time: 00:00:01
|
|
|
09-29-2005, 10:10 AM
|
#5
|
Member
Registered: Sep 2005
Distribution: Fedora Core 2
Posts: 34
Rep:
|
so the client is working??
did youget the files to transfer??
did you change the permissions on the folders you are accessing??
i can see from your output that things seem to work properly
are you still having trouble??
|
|
|
All times are GMT -5. The time now is 01:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|