04-03-2007
FTP is not working.
Hi,
I'm getting the following error while trying to use the ftp command.
----------------
331 Password required for prodofsa.
Password:
230 User prodofsa logged in.
ftp>
ftp>
ftp>
ftp> ls
200 PORT command successful.
425 Can't build data connection: Connection timed out.
ftp>
--------------------
I have checked with another desktop assigning the same I/P and network cable , where it works find. CAn anybody help me to resolve the problem.
Brayan
10 More Discussions You Might Find Interesting
1. AIX
Upto last month my script was working fine,
Now I am getting following error, any one help me?
Tcl_Init failed: Can't find a usable init.tcl in the following directories:
/usr/local/lib/tcl8.0 ./lib/tcl8.0 ./tcl8.0/library ./library
This probably means that Tcl wasn't installed... (0 Replies)
Discussion started by: redlotus72
0 Replies
2. Shell Programming and Scripting
Why when I mv $UpLoadFileName supfinaid.DSB
does not work,
it is getting the $UpLoadFileName and it is moving it to the right location,
but not the move,
Let me know if you want to see the all script, I just want to rename
$UpLoadFileName, it is moving $UpLoadFileName to the right... (6 Replies)
Discussion started by: rechever
6 Replies
3. Web Development
I get
ftp> wget
?Invalid command.
ftp> 0 * * * * wget -O - -q -t 1 http://www.example.com/cron.php
?Invalid command.
thanks (6 Replies)
Discussion started by: aneuryzma
6 Replies
4. UNIX for Dummies Questions & Answers
I am trying to set up an account for a user on our network to ftp into and access his folder for his web site.
I have been tossed into the previous web hosting server without really knowing much about how it has or is set up, but I've been following most of the tutorials I have seen around the... (0 Replies)
Discussion started by: nlraley
0 Replies
5. Linux
Dear all,
I am totally despaired and puzzled.
Using Filezilla under Windows under the same network as our Linux servers is working. Using FTP command-line client under any of our Linux debian servers is not working ! I tried with different FTP servers -> same problem !
All commands are... (12 Replies)
Discussion started by: magix_ch
12 Replies
6. Solaris
Hi everyone: I have been trying to simply FTP a file over to this SunOS 5.10 (which is same as Solaris 10 now) and nothing works!
I can only Telnet to this via SSH (with my own account/uid), and I can also send simple mail out with mailx, that's all!!!
I cannot FTP to it (I think FTP... (7 Replies)
Discussion started by: steve701
7 Replies
7. Shell Programming and Scripting
Hi Gurus,
I prepared a script to process some files and then ftp the output file to mainframe directory. Here is the code snippet for the same.
# Perform FTP
echo "put $TGT_DR/$K.$F.$I.$K1.$RUN_TYPE '$K.$F.$I.$K1.$RUN_TYPE'" >> $LogFile
ftp -i -n <<EOF >> $LogFile
open... (2 Replies)
Discussion started by: svajhala
2 Replies
8. Solaris
Hi All, I have a problem with FTP service on Solaris 10.
Whenever I try to FTP to one machine locally (ftp localhost) or from other machine I don't get any response, I see the ftp service on the machine is online and listening to port 21 but ftp is not responding.
Also it seems i can't... (16 Replies)
Discussion started by: belal84
16 Replies
9. Solaris
I am not very familiar with the use of FTP, and trying to run it I found out that standard "ftp" is not working" but "sftp" is.
If sftp is allowed will that block ftp ? and if so where is this set ?
I thought there is no relationship, is that right ?
If so look here:
inetadm | grep ftp
enabled... (11 Replies)
Discussion started by: manni2
11 Replies
10. Red Hat
Hi all,
i am using fedora 11,and want to make my system as ftp server. I have installed vsftp package and vsftpd daemon is also running.
Can i access my files from outer world i.e. internet using ftp? How can i do that?
i started vsftpd daemon and tried to access server from other system like... (2 Replies)
Discussion started by: yashwantkumar
2 Replies
FTP_PASV(3) 1 FTP_PASV(3)
ftp_pasv - Turns passive mode on or off
SYNOPSIS
bool ftp_pasv (resource $ftp_stream, bool $pasv)
DESCRIPTION
ftp_pasv(3) turns on or off passive mode. In passive mode, data connections are initiated by the client, rather than by the server. It may
be needed if the client is behind firewall.
Please note that ftp_pasv(3) can only be called after a successfull login or otherwise it will fail.
PARAMETERS
o $ftp_stream
- The link identifier of the FTP connection.
o $pasv
- If TRUE, the passive mode is turned on, else it's turned off.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
ftp_pasv(3) example
<?php
$file = 'somefile.txt';
$remote_file = 'readme.txt';
// set up basic connection
$conn_id = ftp_connect($ftp_server);
// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
// turn passive mode on
ftp_pasv($conn_id, true);
// upload a file
if (ftp_put($conn_id, $remote_file, $file, FTP_ASCII)) {
echo "successfully uploaded $file
";
} else {
echo "There was a problem while uploading $file
";
}
// close the connection
ftp_close($conn_id);
?>
PHP Documentation Group FTP_PASV(3)