- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftp syntax when using port other than 21
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2000 12:55 PM
11-27-2000 12:55 PM
xftp 2121/tcp # File Transfer Protocol (Control)
and added the following line to my /etc/inetd.conf file:
xftp stream tcp nowait root /usr/lbin/ftpd ftpd -l
then entered:
root:L1000>:inetd -c
I had assumed that I could then use:
ftp 192.100.100.199 2121
but I don't get a connection. I did the same steps for telnet, and it works fine. Is the syntax different for ftp?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2000 01:25 PM
11-27-2000 01:25 PM
Re: ftp syntax when using port other than 21
I remember reading somewhere that the ftp daemon will look in the services file for a service called ftp therefore I would suggest that in your services file, comment out the
#ftp-data 20/tcp
#ftp 21/tcp
and create the new entries:
ftp-data 2120/tcp
ftp 2121/tcp
(rather than calling it xftp)
next do the inetd -c bit
and run
# netstat -a | grep ftp
ensure that it is listening on the ftp port.
then try:
ftp
> open host 2121
it should work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2000 01:29 PM
11-27-2000 01:29 PM
Re: ftp syntax when using port other than 21
I also just got the message:
421 Service not available, remote server has closed connection
so there is something else going on...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2000 01:49 PM
11-27-2000 01:49 PM
Re: ftp syntax when using port other than 21
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2000 02:08 PM
11-27-2000 02:08 PM
Re: ftp syntax when using port other than 21
In the log I get:
Nov 27 16:29:59 L1000 ftpd[7000]: FTP LOGIN FROM g40 [192.100.100.251], root
Nov 27 16:30:17 L1000 ftpd[7000]: FTP session closed
not much help...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2000 02:23 PM
11-27-2000 02:23 PM
Re: ftp syntax when using port other than 21
1. Can you still ftp on port 21?
2. you might want to get verbose debugging messages so edit your /etc/inetd.conf file and modify the ftpd -l line to read ftpd -l -d (then restart inetd with inetd -c)
3. Something that jumps to mind is do you have access restrictions turned on in /var/adm/inetd.sec? or are you running DNS? it is possible that it is timing out waiting for the reverse name lookup of the connecting host.
try (while logged on to the server itself, ) ftp localhost 2121
then look at the messages in the /var/adm/syslog/syslog.log ( with the debug turned on, you should get more verbose information)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2000 02:30 PM
11-27-2000 02:30 PM
Re: ftp syntax when using port other than 21
(edit it to remove IP addresses before posting)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2000 06:21 AM
11-28-2000 06:21 AM
Re: ftp syntax when using port other than 21
1. No problem using ftp on port 21?
2. you might want to get verbose debugging messages so edit your /etc/inetd.conf file and modify the ftpd -l line to read ftpd -l -d (then restart inetd with inetd -c)
3. No access restrictions turned on in /var/adm/inetd.sec. and no DNS.
4. Tryed ftp localhost 2121...
no messages generated in the /var/adm/syslog/syslog.log.
root:L1000>:ftp localhost 2121
Connected to localhost.
the cursur just hangs at this point, and when I kill it with contrl c I get:
421 Service not available, remote server has closed connection
ftp>
the ouptut from netstat -a | grep LISTEN is quite long, so instead here is the output from:
root:L1000>:netstat -a | grep ftp
tcp 0 0 *.xftp *.* LISTEN
tcp 0 0 *.ftp *.* LISTEN
udp 0 0 *.tftp *.*
I am missing somthing here - and it is driving me nuts...is port 2121 reserved for anything special... I didn't think so - nothing in /etc/services. Here are the last lines from the syslog after
inetd -c
and attempting
ftp localhost 2121
Nov 28 09:23:19 L1000 inetd[550]: Rereading configuration
Nov 28 09:23:19 L1000 inetd[550]: protocol = tcp
Nov 28 09:17:16 L1000 inetd[550]: xftp/tcp: Service enabled
Nov 28 09:23:19 L1000 inetd[550]: protocol = udp
Nov 28 09:23:20 L1000 inetd[550]: Configuration complete
Nothing on the attempted ftp and it is weird that the service enable message is not in chronological order in the syslog.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2000 10:04 AM
11-28-2000 10:04 AM
Re: ftp syntax when using port other than 21
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2000 10:12 AM
11-28-2000 10:12 AM
SolutionI made a test on a new server with a basic
HPUX 11.00 installation :
with ftp 21/tcp in my etc/services
>ftp localhost 2121
Connected to localhost
I had to kill with CtrlC
This port seems to be use by another process.
With netstat this port is in use and the file
socket is /opt/dcelocal/var/rpc/local/s-0/2121.
But I syslog there is a bind error for inetd !!
After I use ftp 30000/tcp in etc/services and
it seems to work well....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2000 10:14 AM
11-28-2000 10:14 AM
Re: ftp syntax when using port other than 21
root:L1000>:netstat -an | grep 2121
tcp 0 0 *.2121 *.* LISTEN
udp 0 0 *.2121 *.*
102244400 stream 0 0 100dd3800 0
0 0 /opt/dcelocal/var/rpc/local/s-0/2121
102248c00 dgram 0 0 100dd2800 0
0 0 /opt/dcelocal/var/rpc/local/s-3/2121
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2000 10:27 AM
11-28-2000 10:27 AM