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
#
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:
Welcome, please use code tags next time for your code and data, thanks
Greetings
Have you checked ftpd is running?
Are you on the same network as the PC or the Windows server? ( switches/routers can be configured to let only some ports open...)
can you ftp a nearby server on same lan, can you from the Windos server ftp your AIX?...
# lssrc -t ftp
Service Command Description Status
ftp /usr/sbin/ftpd ftpd -d active
#
Windows PC and my AIX server are on the same LAN ,let's say LAN1
The server that i'm trying to connect to is on another LAN say LAN 2
I was successfully able to ping the AIX server from my local windows workstation
Here is the o/p:
Code:
C:\Users\LINC>ftp
ftp> open 172.16.80.80
Connected to 172.16.80.80.
220 prdsap1 FTP server (Version 4.2 Wed Jun 29 13:24:26 CDT 2011) ready.
500 'OPTS UTF8 ON': command not understood.
User (172.16.80.80:(none)): root
331 Password required for root.
Password:
230-Last unsuccessful login: Wed Jan 22 17:40:48 GMT+05:30 2020 on /dev/pts/0 from 172.16.80.85
230-Last login: Thu Feb 20 14:29:04 GMT+05:30 2020 on ftp from ::ffff:172.16.80.5
230 User root logged in.
ftp> dir
200 PORT command successful.
150 Opening data connection for /bin/ls.
total 18008
-rw------- 1 root system 74 Feb 06 18:55 .TTauthority
-rw------- 1 root system 101 Feb 06 18:55 .Xauthority
-rw-r--r-- 1 root system 268 May 05 2019 .desksetdefaults
drwxr-xr-x 11 root system 4096 Feb 06 18:56 .dt
-rwxr-xr-x 1 root system 3970 Dec 22 2011 .dtprofile
drwxr-xr-x 3 root system 256 Dec 22 2011 .java
drwxr-x--- 3 root system 256 Dec 26 2018 .sapinst
drwxr-x--- 2 root system 4096 Sep 05 2017 .sdtgui
-rw------- 1 root system 10816 Feb 20 13:45 .sh_history
drwx------ 2 root system 256 Dec 23 2011 .topasrecrc
-rw------- 1 root system 169 Feb 10 11:58 .vi_history
-rw-rw-r-- 1 root system 3 Feb 06 18:55 .wmrc
drwxr-xr-x 2 root system 4096 Dec 22 2011 TT_DB
-rw-r--r-- 1 root system 13500 Nov 16 18:57 WebSM.pref
-rw-r--r-- 1 root system 84 Jan 17 2012 WebSM.pref_wsmmonitoring.data
drwxr-xr-x 4 root system 256 Dec 22 2011 admin
drwxr-x--- 2 root audit 256 Sep 15 2011 audit
drwxr-xr-x 3 root system 256 Jan 24 2013 backup
lrwxrwxrwx 1 bin bin 8 Dec 22 2011 bin -> /usr/bin
drwxr-xr-x 2 root system 256 Jan 17 2012 bkp
drwxr-xr-x 2 root system 256 Jan 17 2012 bkup
-rw-r--r-- 1 root system 6263 Aug 30 2017 bosinst.data
-rw-r--r-- 1 root system 194 Jan 22 12:25 con.sh
-rw-r--r-- 1 root system 0 Dec 22 2011 configassist.log
-rw-r--r-- 1 root system 182 Jan 22 12:21 consumption.sh
-rw------- 1 root system 3218089 Feb 27 2018 core
drwxrwxrwx 17 root system 139264 Dec 17 15:51 databackup
drwxrwxr-x 5 root system 8192 Feb 19 23:55 dev
drwxr-xr-x 16 root system 4096 Dec 22 2011 esa
drwxr-xr-x 36 root system 8192 Feb 07 09:45 etc
drwxr-xr-x 7 bin bin 256 Jan 22 10:48 home
-rw-r--r-- 1 root system 11087 Aug 30 2017 image.data
lrwxrwxrwx 1 bin bin 8 Dec 22 2011 lib -> /usr/lib
drwx------ 2 root system 256 Dec 22 2011 lost+found
drwxr-xr-x 176 bin bin 8192 Mar 07 2017 lpp
drwxr-xr-x 2 root system 256 Jan 12 2017 ltodrv
drwxr-xr-x 2 bin bin 256 Sep 15 2011 mnt
drwxr-xr-x 20 root system 4096 Jan 23 2012 opt
drwxr-xr-x 12 orap01 dba 4096 Feb 15 2017 oracle
drwxr-xr-x 4 pconsole pconsole 256 Dec 22 2011 pconsole
dr-xr-xr-x 1 root system 0 Feb 20 14:32 proc
drwxrwxrwx 13 root system 4096 Jan 23 2013 sapcd
drwxr-xr-x 3 root system 256 Dec 23 2011 sapmnt
drwxr-xr-x 3 bin bin 256 Dec 22 2011 sbin
-rw-r--r-- 1 root system 5493447 Aug 13 2019 smit.log
-rw-r--r-- 1 root system 28230 Aug 13 2019 smit.script
-rw-r--r-- 1 root system 48118 Aug 13 2019 smit.transaction
-rw-r--r-- 1 root system 40871 Apr 04 2012 syslog-tmp
drwxr-xr-x 2 root system 256 Jan 17 2012 temp1
drwxrwxr-x 2 root system 256 Dec 22 2011 tftpboot
drwxrwxrwt 59 bin bin 8192 Feb 20 14:32 tmp
lrwxrwxrwx 1 bin bin 5 Dec 22 2011 u -> /home
drwxr-xr-x 3 root system 256 Dec 23 2011 uar
lrwxrwxrwx 1 root system 21 Dec 22 2011 unix -> /usr/lib/boot/unix_64
drwxr-xr-x 51 bin bin 4096 Jan 23 2012 usr
drwxr-xr-x 35 bin bin 4096 Dec 23 2011 var
-rw-r--r-- 1 root system 58 Nov 16 18:57 websm.log
-rw-r--r-- 1 root system 1282 Feb 07 02:15 websm.script
-rw-r--r-- 1 root system 69333 Feb 07 02:15 websm1.transaction
-rw-r--r-- 1 root system 1152 Jan 20 2012 wsmcustomtools.data
226 Transfer complete.
ftp: 4133 bytes received in 0.27Seconds 15.60Kbytes/sec.
ftp>
--- Post updated at 10:24 AM ---
Quote:
Originally Posted by Neo
Did you do a
Code:
traceroute
(or similar command in AIX) to your ftp server from the host you are having issues with?
Also, did you search the site first before asking this question?
I think this question has been asked and answered many times over the years.
Hi, i did search this site and went across 10-12 different posts/questions which were of similar nature,still haven't found a solution .
Yes, did do a traceroute from my host to the ftp server :
Code:
# traceroute 203.112.144.202
trying to get source for 203.112.144.202
source should be 172.16.80.80
traceroute to 203.112.144.202 (203.112.144.202) from 172.16.80.80 (172.16.80.80), 30 hops max
outgoing MTU = 1500
1 172.16.80.100 (172.16.80.100) 31 ms 0 ms 0 ms
2 172.16.80.100 (172.16.80.100) 0 ms !H * *
3 172.16.80.100 (172.16.80.100) 0 ms !H * *
4 172.16.80.100 (172.16.80.100) 0 ms !H * 0 ms !H
#
Thing is the infrastructure @ my organization where i joined 2 weeks back is a mess, no proper OS monitoring/maintenance was done for quite sometime . I immediately need to transfer important business docs from my SAP AIX server to ftp server.
Have checked the services file, ports,inetd.conf file. Tried checking the firewall status which led to this
Code:
# lsfilt -a
Can not open device /dev/ipsec4_filt.
Would be extremely grateful if you can guide me to look for areas where i can troubleshoot ?
Yes, that's right .
I tried pinging from the host ( which is my SAP server running on AIX) to the FTP server
Result : unsuccessful ,cannot ping
Code:
# traceroute 203.112.144.202
trying to get source for 203.112.144.202
source should be 172.16.80.80
traceroute to 203.112.144.202 (203.112.144.202) from 172.16.80.80 (172.16.80.80), 30 hops max
outgoing MTU = 1500
1 172.16.80.100 (172.16.80.100) 31 ms 0 ms 0 ms
2 172.16.80.100 (172.16.80.100) 0 ms !H * *
3 172.16.80.100 (172.16.80.100) 0 ms !H * *
4 172.16.80.100 (172.16.80.100) 0 ms !H * 0 ms !H
# ping -c 5 203.112.144.202
PING 203.112.144.202: (203.112.144.202): 56 data bytes
--- 203.112.144.202 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss
#
But, when i pinged the same FTP server from my local PC/Workstation (in the same LAN as my SAP server) it was successful
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)): saplincpen
331 Password required
Password:
Location: Asia Pacific, Cyberspace, in the Dark Dystopia
Posts: 19,118
Thanks Given: 2,351
Thanked 3,359 Times in 1,878 Posts
To keep the forums high quality for all users, please take the time to format your posts correctly.
First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags [code] and [/code] by hand.)
Please read and follow the rules about code tags and let us know you will abide by the rules:
Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.
Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.
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)
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)
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)
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)
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)
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)
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)