FTP Connection


 
Thread Tools Search this Thread
Special Forums Cybersecurity FTP Connection
# 1  
Old 05-23-2006
FTP Connection

I just started a new job and inherited a Fedora core 3 server. I wanted to open the ftp ports and I wanted to verify this code before I mess things up. From my reading the two lines below should allow ftp access can anyone confirm my attempt.

iptables -A INPUT -p tcp - sport 21 -m state - state ESTABLISHED -j ACCEPT

iptables -A OUTPUT -p tcp - dport 21 -m state - state NEW,ESTABLISHED -j ACCEPT
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP connection refused

Hi I am trying to execute a shell script which is in unix server gs1. The script is below which basically connects to another unix server q15 and tries to get a file using FTP . But i get error as "ftp: connect: Connection refused Not connected. Not connected." Please help with if the below... (8 Replies)
Discussion started by: samrat dutta
8 Replies

2. Debian

ftp connection refused

I have two computers running Debian 6.0 and one running Solaris 2.6 on a private network. The Debian computers can ftp to the Solaris computer but if a Debian computer is the destination the ftp connection is refused. I assume this is some security feature of Debian. What can I do to allow... (2 Replies)
Discussion started by: snorkack59
2 Replies

3. Solaris

Passwordless FTP connection

Hello, Can someone help me in getting a passwordless FTP conncetion ? It works if I do it as myself, but I need to be user1 when I do it, not myself. When I do it as user1, it asks for user1 password, which we don't have. All in all, ftp myserver.com works on all other servers when I'm... (5 Replies)
Discussion started by: aksijain
5 Replies

4. Shell Programming and Scripting

FTP Connection die out

Hi, I will ftp aroung 80 files after connecting to an FTP Server. But after 2 minutes of connection, it is timed out and connection is dying. Server had a 2 minute connection timeout if connection is idle. But my question, Isn't tranfering files not considered as an activity. Is the connection... (7 Replies)
Discussion started by: vasuarjula
7 Replies

5. Solaris

Solaris 10 ftp connection problem (connection refused, connection timed out)

Hi everyone, I am hoping anyone of you could help me in this weird problem we have in 1 of our Solaris 10 servers. Lately, we have been having some ftp problems in this server. Though it can ping any server within the network, it seems that it can only ftp to a select few. For most servers, the... (4 Replies)
Discussion started by: labdakos
4 Replies

6. Shell Programming and Scripting

FTP connection problem

I am getting the error in this command when i am pitting it in shell script ftp -nvi jcmpcor1.abc.com >/work/test98.dat << EOD error:- invalid command. but when i am writting it from outside it work fine. (7 Replies)
Discussion started by: ravi214u
7 Replies

7. UNIX for Dummies Questions & Answers

FTP Connection

Hi, Anyone encounter whereby when you FTP from an Unix server (Solaris 8) to another server (Window Server 2003), you tend to wait a long while when you do a "ls" and you get a timeout after that. However, when you FTP again and do a "ls", the result of "ls" shown immediately. All connection are... (5 Replies)
Discussion started by: ahlude
5 Replies

8. UNIX for Dummies Questions & Answers

ftp - Connection close

Hi Can someone help me what is the problem, when i try to login via ftp, though i entered the correct password, i got an error message Connection refused. please help. thanks (3 Replies)
Discussion started by: kaibiganmi
3 Replies

9. SCO

ftp connection

I have problem with ftp connection on SCO UNIX 5.0.7, it is work slowly. How I can make accelerate. (6 Replies)
Discussion started by: draganmi
6 Replies

10. IP Networking

FTP connection problem

We have moved our DNS and DHCP to Windows 2000 from BIND. Our FTP Server is running Solaris 2.6, users who receive an i.p. address from win2k DHCP receives a connection failed error when trying to FTP and users who have static i.p. address can FTP with no problems. Can anyone shed light as to... (11 Replies)
Discussion started by: cassy
11 Replies
Login or Register to Ask a Question
ct_ftp(3erl)						     Erlang Module Definition						      ct_ftp(3erl)

NAME
ct_ftp - FTP client module (based on the FTP support of the INETS application). DESCRIPTION
FTP client module (based on the FTP support of the INETS application). DATA TYPES
connection() = handle() | target_name() (see module ct) : handle() = handle() (see module ct_gen_conn) : Handle for a specific ftp connection. EXPORTS
cd(Connection, Dir) -> ok | {error, Reason} Types Connection = connection() Dir = string() Change directory on remote host. close(Connection) -> ok | {error, Reason} Types Connection = connection() Close the FTP connection. delete(Connection, File) -> ok | {error, Reason} Types Connection = connection() File = string() Delete a file on remote host get(KeyOrName, RemoteFile, LocalFile) -> ok | {error, Reason} Types KeyOrName = Key | Name Key = atom() Name = target_name() (see module ct) RemoteFile = string() LocalFile = string() Open a ftp connection and fetch a file from the remote host. RemoteFile and LocalFile must be absolute paths. The config file must be as for put/3. See also: put/3 . ls(Connection, Dir) -> {ok, Listing} | {error, Reason} Types Connection = connection() Dir = string() Listing = string() List the directory Dir. open(KeyOrName) -> {ok, Handle} | {error, Reason} Types KeyOrName = Key | Name Key = atom() Name = target_name() (see module ct) Handle = handle() Open an FTP connection to the specified node. You can open one connection for a particular Name and use the same name as reference for all subsequent operations. If you want the connection to be associated with Handle instead (in case you need to open multiple connections to a host for example), simply use Key , the configuration variable name, to specify the target. Note that a connection that has no associated target name can only be closed with the handle value. put(KeyOrName, LocalFile, RemoteFile) -> ok | {error, Reason} Types KeyOrName = Key | Name Key = atom() Name = target_name() (see module ct) LocalFile = string() RemoteFile = string() Open a ftp connection and send a file to the remote host. LocalFile and RemoteFile must be absolute paths. If the target host is a "special" node, the ftp address must be specified in the config file like this: {node,[{ftp,IpAddr}]}. If the target host is something else, e.g. a unix host, the config file must also include the username and password (both strings): {unix,[{ftp,IpAddr}, {username,Username}, {password,Password}]}. recv(Connection, RemoteFile) -> ok | {error, Reason} Fetch a file over FTP. The file will get the same name on the local host. See also: recv/3 . recv(Connection, RemoteFile, LocalFile) -> ok | {error, Reason} Types Connection = connection() RemoteFile = string() LocalFile = string() Fetch a file over FTP. The file will be named LocalFile on the local host. send(Connection, LocalFile) -> ok | {error, Reason} Send a file over FTP. The file will get the same name on the remote host. See also: send/3 . send(Connection, LocalFile, RemoteFile) -> ok | {error, Reason} Types Connection = connection() LocalFile = string() RemoteFile = string() Send a file over FTP. The file will be named RemoteFile on the remote host. type(Connection, Type) -> ok | {error, Reason} Types Connection = connection() Type = ascii | binary Change file transfer type AUTHORS
<> common_test 1.5.3 ct_ftp(3erl)