Unable to use FTP command to connect from one server to another


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Unable to use FTP command to connect from one server to another
# 1  
Old 07-23-2012
Unable to use FTP command to connect from one server to another

Hi,

I have two unix servers A and B. from A i am trying to use the ftp command to connect to B but I am getting the "ftp: connect: A remote host refused an attempted connect operation."
I checked the following things :
1.) Unix Server details for A and B after running the command uname -a
server A :
AIX A 3 5 XXXX
server B :
Linux B 2.6.18-164.2.1.el5 #1 SMP Mon Sep 21 04:37:42 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

2.) I checked the services file in /etc folder and i have the entries
Code:
ftp-data 20/tcp
ftp 21/tcp

and both are not commented.
3.)There were no such files like ftpaccess,ftpgroups,ftphosts,ftpusers in /etc folder.
4.) When i gave the command "ps -fe | grep ftpd", no rows were fetched.
5.) I also ran the following command to check if ftp is installed.
"rpm -q ftp" and I got the output as "ftp-0.17-35.el5".
6.) When i ran the command "rpm -q vsftpd" to see if the vsftpd package is installed, I got the result as "package vsftpd is not installed".
Does this mean that FTP is not installed in my unix server or is some firewall blocking? I am able to do ssh and scp from the same server. If it is a firewall issue, please let me know how to resolve the same?
If ftp is not installed, will the installation of vsftpd package solve the issue or is there anything else I need to take care of?
Please help me.
Thanks in advance.

Last edited by jim mcnamara; 07-23-2012 at 07:27 AM..
# 2  
Old 07-23-2012
try to telnet over to server B on port 20. If you get connection refused then the port is disabled on the remote box. Linux by default has ftp in the distribution. Your server does not have vsftpd installed based on your output.

Let's start here.

Code:
telnet serverB 20

let us know what happened.
# 3  
Old 07-23-2012
Hi Jim,

I checked as told by u. When I gave the command "telnet serverB 20" , I got the below output

Trying...
telnet: connect: A remote host refused an attempted connect operation.

So, is it like ftp will work once the port 20 is enabled on the server B or the vsftpd package also has to be installed on that server for ftp to work?

Thanks.
# 4  
Old 07-24-2012
Hi,
seems that ftp server is not installed on the Linux, to double check type chkconfig | grep ftp.

If this is confirmed give a try to sftp client.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Unable to connect using ftp

hi I am having issues when trying to connect using ftp, I am having the following error: User (10.100.48.73:(none)): moz 331 Password required for moza. Password: 530 Login incorrect. Login failed. ftp> by 221 Goodbye. I have created a user like this: useradd -g 10 -d /lam/moza -m -s... (11 Replies)
Discussion started by: fretagi
11 Replies

2. Shell Programming and Scripting

Not able to connect to new FTP server

Hi All, We have done new FTB setup. I am not able to to connect to this new target server. Here is the new setup to send files to the FTB : - Login : FTB-TAN-DEV-SAP - Protocol : SFTP - Port : 54322 - Hostname : ftb-dev.apj.hp - Env : DEV - Target ID : 3225 I tried connecting to the... (5 Replies)
Discussion started by: ROCK_PLSQL
5 Replies

3. Solaris

Unable to connect sun server.

Hi, I am unable to connect sun server, server model is sun fire v440 on server 2 ports are there. serial management, and network management. I would like to know how to connect serial port if I dont have com port on my system? and on Network Management no ip address is configured. ... (2 Replies)
Discussion started by: manoj.solaris
2 Replies

4. Linux

Unable to connect to Server machine from a client machine using ftp service

Hi, Could you please help me with the below issue.. I'm running RHEL6 OS on both server (192.168.0.10) and client machines (192.168.0.1). I'm trying to connect to server from the client machine using ftp service. I have installed vsftpd daemon on both the machines. I'm getting... (4 Replies)
Discussion started by: raosr020
4 Replies

5. UNIX for Advanced & Expert Users

Public key to connect from one ftp server to other server

How to generate public key to connect from one ftp server to other server to use in scripting. (1 Reply)
Discussion started by: sridhardwh
1 Replies

6. Linux

Generate public key to connect from one ftp server to other server

How to generate public key to connect from one ftp server to other server to use in scripting. (0 Replies)
Discussion started by: sridhardwh
0 Replies

7. Red Hat

unable to connect remote server using ssh

hi all i am unable to connect remote server using ssh but i am able to ping the server ssh service is running. (5 Replies)
Discussion started by: nikhil kasar
5 Replies

8. HP-UX

[Solved] Unable to rename file in ftp server .Net:FTP perl

Hello All, I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir. rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed. Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
2 Replies

9. AIX

Unable to connect to AIX server through xmanager

Hi, I have xmanager installed on my windows PC. But I am not able to connect to AIX server. It's giving the error as follows: The X11 forwarding request was rejected. Graphics mode is not coming up in AIX server. Please help as I have to install oracle patchset urgently. (1 Reply)
Discussion started by: dwiravi
1 Replies

10. Shell Programming and Scripting

ftp script not able to connect to ftp server.

I have the following ftp script to get files from a remote location. However, on running the script I find that I am not even able to connect to ftp server. I am able to connect to ftp server using other GUI ftp tools like WS_FTP using the same IP. IP used here is a dummy IP. What can go... (3 Replies)
Discussion started by: gram77
3 Replies
Login or Register to Ask a Question