Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Unable to connect to a server from our AIX server via FTP Post 303044355 by Bruno2020 on Thursday 20th of February 2020 03:00:20 AM
Old 02-20-2020
Unable to connect to a server from our AIX server via FTP

Hi guys,
We are trying to connect to an FTP server from our AIX server. Getting the following message
Code:
# ftp 164.52.194.12
ftp: connect: A remote host did not respond within the timeout period.
ftp> open 164.52.194.12
ftp: connect: A remote host did not respond within the timeout period.
ftp>

However, we are able to reach out to the same server from our local PC (workstation) via powershell

Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.

Code:
PS C:\Users\LINC> ftp
ftp> open 164.52.194.12
Connected to 164.52.194.12.
220 Microsoft FTP Service
200 OPTS UTF8 command successful - UTF8 encoding now ON.
User (164.52.194.12:(none)):

The ftp services are enabled [uncommented] in the /etc/services file

Code:
# grep -i ftp /etc/services
ftp-data                20/tcp          # File Transfer [Default Data]
ftp-data                20/udp          # File Transfer [Default Data]
ftp                             21/tcp          # File Transfer [Control]
ftp                             21/udp          # File Transfer [Control]
ni-ftp                  47/tcp          # NI FTP
ni-ftp                  47/udp          # NI FTP
tftp                    69/udp          # Trivial File Transfer
tftp                    69/tcp          # Trivial File Transfer
sftp                    115/tcp         # Simple File Transfer Protocol
sftp                    115/udp         # Simple File Transfer Protocol
bftp                    152/tcp         # Background File Transfer Program
bftp                    152/udp         # Background File Transfer Program
softpc                  215/tcp         # Insignia Solutions
softpc                  215/udp         # Insignia Solutions
subntbcst_tftp  247/tcp         # SUBNTBCST_TFTP
subntbcst_tftp  247/udp         # SUBNTBCST_TFTP
mftp                    349/tcp         # mftp
mftp                    349/udp         # mftp
ftp-agent                574/tcp                # FTP Software Agent System
ftp-agent                574/udp                # FTP Software Agent System
pftp                    662/tcp         # PFTP
pftp                    662/udp         # PFTP
ftps-data                989/tcp                # ftp protocol, data, over TLS/SSL
ftps-data                989/udp                # ftp protocol, data, over TLS/SSL
ftps                    990/tcp         # ftp protocol, control, over TLS/SSL
ftps                    990/udp         # ftp protocol, control, over TLS/SSL
tftp-mcast              1758/tcp                # tftp-mcast
tftp-mcast              1758/udp                # tftp-mcast
etftp                    1818/tcp               # Enhanced Trivial File Transfer Protocol
etftp                    1818/udp               # Enhanced Trivial File Transfer Protocol
utsftp                  2529/tcp                # UTS FTP
utsftp                  2529/udp                # UTS FTP
aaftp                    2794/tcp               # aaftp
aaftp                    2794/udp               # aaftp
gsiftp                  2811/tcp                # GSI FTP
gsiftp                  2811/udp                # GSI FTP
odette-ftp              3305/tcp                # ODETTE-FTP
odette-ftp              3305/udp                # ODETTE-FTP
tftps                    3713/tcp               # TFTP over TLS
tftps                    3713/udp               # TFTP over TLS
exasoftport1    3920/tcp                # Exasoft IP Port
exasoftport1    3920/udp                # Exasoft IP Port
mftp                    5402/tcp                # MFTP
mftp                    5402/udp                # MFTP
#

The ports are open
Code:
# netstat -an|grep LIST|grep 20
tcp        0      0  *.2049                 *.*                    LISTEN
tcp4       0      0  *.3200                 *.*                    LISTEN
# netstat -an|grep LIST|grep 21
tcp        0      0  *.21                   *.*                    LISTEN

Checked the inetd.conf file, ftp isn't commented out
Code:
# cat inetd.conf
## @(#)62       1.17.3.4  src/tcpip/etc/inetd.conf, tcpinet, tcpip61N, 1024A_61N 5/27/10 21:56:33
## IBM_PROLOG_BEGIN_TAG
## This is an automatically generated prolog.
##
## tcpip61N src/tcpip/etc/inetd.conf 1.17.3.4
##
## Licensed Materials - Property of IBM
##
## COPYRIGHT International Business Machines Corp. 1993,2010
## All Rights Reserved
##
## US Government Users Restricted Rights - Use, duplication or
## disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
##
## IBM_PROLOG_END_TAG
##
## COMPONENT_NAME: TCPIP inetd.conf
##
## FUNCTIONS:
##
## ORIGINS: 26  27
##
## (C) COPYRIGHT International Business Machines Corp. 1993
## All Rights Reserved
## Licensed Materials - Property of IBM
##
## US Government Users Restricted Rights - Use, duplication or
## disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
##
#######################################################################
##
##                 Internet server configuration database
##
##      Services can be added and deleted by deleting or inserting a
##      comment character (ie. #) at the beginning of a line  If inetd
##      is running under SRC control then the "refresh -s inetd" command
##      needs to be executed for inetd to re-read the inetd.conf file.
##
##      NOTE: The TCP/IP servers do not require SRC and may be started
##      by invoking the service directly (i.e. /etc/inetd). If inetd
##      has been invoked directly, after modifying this file, send a
##      hangup signal, SIGHUP to inetd (ie. kill -1 "pid_of_inetd").
##
##      NOTE: The services with socket type of "sunrpc_tcp" and "sunrpc_udp"
##      require that the portmap daemon be running.
##      Also please use ## to designate comments in this file so that
##      the smit commands can edit this file correctly.
##
##      NOTE: When using IPv6 services, specify "tcp6" or "udp6" for the
##      protocol.  "tcp" and "udp" are interpreted as IPv4.
##
## service  socket  protocol  wait/  user    server    server program
##  name     type             nowait         program     arguments
##
ftp     stream  tcp6    nowait  root    /usr/sbin/ftpd         ftpd -d
telnet  stream  tcp6    nowait  root    /usr/sbin/telnetd      telnetd -a
shell   stream  tcp6    nowait  root    /usr/sbin/rshd         rshd
#kshell  stream  tcp     nowait  root    /usr/sbin/krshd        krshd
login   stream  tcp6    nowait  root    /usr/sbin/rlogind      rlogind
#klogin  stream  tcp     nowait  root    /usr/sbin/krlogind     krlogind
exec    stream  tcp6    nowait  root    /usr/sbin/rexecd       rexecd
#comsat dgram   udp     wait    root    /usr/sbin/comsat       comsat
#uucp   stream  tcp     nowait  root    /usr/sbin/uucpd        uucpd
#bootps dgram   udp     wait    root    /usr/sbin/bootpd       bootpd /etc/bootptab
##
## Finger, systat and netstat give out user information which may be
## valuable to potential "system crackers."  Many sites choose to disable
## some or all of these services to improve security.
##
#finger stream  tcp     nowait  nobody  /usr/sbin/fingerd     fingerd
#systat stream  tcp     nowait  nobody  /usr/bin/ps           ps -ef
#netstat stream tcp     nowait  nobody  /usr/bin/netstat      netstat -f inet
#
#tftp    dgram  udp6    SRC     nobody  /usr/sbin/tftpd         tftpd -n
#talk   dgram   udp     wait    root    /usr/sbin/talkd         talkd
ntalk   dgram   udp     wait    root    /usr/sbin/talkd         talkd
#
# rexd uses very minimal authentication and many sites choose to disable
# this service to improve security.
#
#rquotad  sunrpc_udp     udp     wait    root    /usr/sbin/rpc.rquotad rquotad 100011 1
#rexd    sunrpc_tcp     tcp     wait    root    /usr/sbin/rpc.rexd rexd 100017 1
#rstatd  sunrpc_udp     udp     wait    root    /usr/sbin/rpc.rstatd rstatd 100001 1-3
#rusersd sunrpc_udp     udp     wait    root    /usr/lib/netsvc/rusers/rpc.rusersd rusersd 100002 1-2
#rwalld  sunrpc_udp     udp     wait    root    /usr/lib/netsvc/rwall/rpc.rwalld rwalld 100008 1
#sprayd  sunrpc_udp     udp     wait    root    /usr/lib/netsvc/spray/rpc.sprayd sprayd 100012 1
#pcnfsd  sunrpc_udp     udp     wait    root    /usr/sbin/rpc.pcnfsd pcnfsd 150001 1-2
#echo   stream  tcp     nowait  root    internal
#discard        stream  tcp     nowait  root    internal
#chargen        stream  tcp     nowait  root    internal
daytime stream  tcp     nowait  root    internal
time    stream  tcp     nowait  root    internal
#echo   dgram   udp     wait    root    internal
#discard        dgram   udp     wait    root    internal
#chargen        dgram   udp     wait    root    internal
daytime dgram   udp     wait    root    internal
time    dgram   udp     wait    root    internal
## The following line is for installing over the network.
#instsrv stream tcp     nowait  netinst /u/netinst/bin/instsrv instsrv -r /tmp/netinstalllog /u/netinst/scripts
#imap2  stream  tcp     nowait  root    /usr/sbin/imapd imapd
#pop3   stream  tcp     nowait  root    /usr/sbin/pop3d pop3d
caa_cfg stream  tcp6    nowait  root    /usr/sbin/clusterconf clusterconf >>/var/adm/ras/clusterconf.log 2>&1
dtspcd  stream  tcp     nowait  root    /usr/dt/bin/dtspcd /usr/dt/bin/dtspcd
cmsd    sunrpc_udp      udp     wait    root    /usr/dt/bin/rpc.cmsd cmsd 100068 2-5
ttdbserver      sunrpc_tcp      tcp     wait    root    /usr/dt/bin/rpc.ttdbserver rpc.ttdbserver 100083 1
wsmserver       stream  tcp     nowait  root    /usr/websm/bin/wsmserver wsmserver -start
xmquery dgram   udp     wait    root    /usr/bin/xmtopas xmtopas -p3
#

Upon checking the firewall status , we are getting the following message

Code:
# lsfilt -a
Can not open device /dev/ipsec4_filt.

Please suggest what approach to take /checks to do in order to connect via FTP? Any specific firewall related checks we need to do ?

OS configuration:
Code:
# oslevel -r
6100-07
# uname -0a
uname: Not a recognized flag: 0
Usage: uname [-snlrvmaxupfFMWS:T:L]
# uname -a
AIX prdsap1 1 6 00F71E294C00
# oslevel -s
6100-07-00-0000
#

Regards,
Bruno


Moderator's Comments:
Mod Comment Welcome, please use code tags next time for your code and data, thanks

Last edited by vbe; 02-20-2020 at 04:53 AM..
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. UNIX for Advanced & Expert Users

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... (3 Replies)
Discussion started by: mick_000
3 Replies

5. 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

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. 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

8. 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

9. 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

10. 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
All times are GMT -4. The time now is 12:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy